Kaydet (Commit) 33021ea5 authored tarafından Jim Raykowski's avatar Jim Raykowski Kaydeden (comit) Katarina Behrens

tdf#112435 Scroll to navigated position

Force scroll to position of navigation when navigating to
inactive document using Navigator.

Change-Id: I8671973f5fdb5f4158a7795bf0b3381db867d57a
Reviewed-on: https://gerrit.libreoffice.org/44330Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 19f01900
......@@ -3504,6 +3504,14 @@ void SwContentTree::GotoContent(SwContent* pCnt)
rView.StopShellTimer();
rView.GetPostItMgr()->SetActiveSidebarWin(nullptr);
rView.GetEditWin().GrabFocus();
// force scroll to cursor position when navigating to inactive document
if(!bSel)
{
Point rPoint = m_pActiveShell->GetCursorDocPos();
rPoint.setX(0);
rView.SetVisArea(rPoint);
}
}
// Now even the matching text::Bookmark
......
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