summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-01-30 18:18:36 -0900
committerJim Raykowski <raykowj@gmail.com>2020-02-04 02:06:23 +0100
commit54b28638ab15f68731861ae903c732273b41f78a (patch)
treee967a20e1648dea87c694e94cb955382ed44e7e7
parentd81affe8ae1010093521731f863d6a6b29f3510d (diff)
tdf#42695 Fix a couple Writer Navigator "List Box" related bugs
This patch resolves: 1) content not shown when Navigator is docked from a floating zoomed-in ("List Box" item unchecked) state 2) "List Box" item is visible when the Navigator is in docked state on document open. Change-Id: Id1fcaf0b581e26aabd4fd897ff142a60d6761e1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87758 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r--sw/source/uibase/utlui/navipi.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index d9e8a007467f..77faca82124d 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -612,6 +612,7 @@ SwNavigationPI::SwNavigationPI(SfxBindings* _pBindings,
m_aContentTree->EnableAsyncDrag(true);
m_aContentTree->ShowTree();
m_aContentToolBox->CheckItem(m_aContentToolBox->GetItemId("listbox"));
+ m_aContentToolBox->ShowItem(m_aContentToolBox->GetItemId("listbox"), SfxChildWindowContext::GetFloatingWindow(GetParent()) != nullptr);
// TreeListBox for global document
m_aGlobalTree->SetSelectionMode( SelectionMode::Multiple );
@@ -765,6 +766,9 @@ void SwNavigationPI::StateChanged(StateChangedType nStateChange)
// its size, the sidebar can not, and the navigator would just waste
// space. Therefore hide this button.
m_aContentToolBox->ShowItem(m_aContentToolBox->GetItemId("listbox"), SfxChildWindowContext::GetFloatingWindow(GetParent()) != nullptr);
+ // show content if docked
+ if (SfxChildWindowContext::GetFloatingWindow(GetParent()) == nullptr && IsZoomedIn())
+ ZoomOut();
}
else if (nStateChange == StateChangedType::ControlFocus)
{