Kaydet (Commit) ddbcb668 authored tarafından Ivan Timofeev's avatar Ivan Timofeev

fdo#41833: fix visual cursor position after resizing

SetOutputArea updates a cursor position, SetVisArea doesn't => call SetOutputArea
after SetVisArea.

Change-Id: Ie8f079cb3d567f759c84587a8072b98fab43588b
üst 2ef38f37
...@@ -597,11 +597,11 @@ void SwSidebarWin::DoResize() ...@@ -597,11 +597,11 @@ void SwSidebarWin::DoResize()
} }
mpOutliner->SetPaperSize( PixelToLogic( Size(aWidth,aHeight) ) ) ; mpOutliner->SetPaperSize( PixelToLogic( Size(aWidth,aHeight) ) ) ;
mpOutlinerView->SetOutputArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) );
if (!mpVScrollbar->IsVisible()) if (!mpVScrollbar->IsVisible())
{ // if we do not have a scrollbar anymore, we want to see the complete text { // if we do not have a scrollbar anymore, we want to see the complete text
mpOutlinerView->SetVisArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) ); mpOutlinerView->SetVisArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) );
} }
mpOutlinerView->SetOutputArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) );
if (!Application::GetSettings().GetLayoutRTL()) if (!Application::GetSettings().GetLayoutRTL())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment