summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/sidebar/UnoDeck.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/UnoDeck.cxx b/sfx2/source/sidebar/UnoDeck.cxx
index 9a77c064b3e3..cf4b3a6a9228 100644
--- a/sfx2/source/sidebar/UnoDeck.cxx
+++ b/sfx2/source/sidebar/UnoDeck.cxx
@@ -95,13 +95,16 @@ void SAL_CALL SfxUnoDeck::activate( const sal_Bool bActivate )
SidebarController* pSidebarController = getSidebarController();
+ // tdf#138160: OpenThenToggleDeck takes care of minimal width
if (bActivate)
- pSidebarController->SwitchToDeck(mDeckId);
+ pSidebarController->OpenThenToggleDeck(mDeckId);
else
+ {
pSidebarController->SwitchToDefaultDeck();
+ // update the sidebar
+ pSidebarController->NotifyResize();
+ }
- // update the sidebar
- pSidebarController->NotifyResize();
}
uno::Reference<ui::XPanels> SAL_CALL SfxUnoDeck::getPanels()