diff options
-rw-r--r-- | sfx2/source/sidebar/UnoDeck.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/UnoDeck.cxx b/sfx2/source/sidebar/UnoDeck.cxx index 122afbe018a2..0350ef1250c3 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() |