summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorIlhan Yesil <ilhanyesil@gmx.de>2020-11-12 15:33:24 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-12-23 00:19:13 +0100
commit7206de4f3d9eecdcbdd98294fa50f01c4c9ece9c (patch)
treea69b9deee5b21aed3fab346f3cfdb6c28a5e0abf /sfx2
parente3b718da8b8b4a6111949cab1810a12d25716319 (diff)
tdf#138160 Set minimal width of sidebar tabpage after UNO call
Call OpenThenToggleDeck in SidebarController instead SwitchToDeck to ensure the minimal width of the tabpage is considered and the width of the sidebar is set correctly. Change-Id: I27c21572b5c648b3ddbb4d908d40af686ac87a9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105758 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sfx2')
-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 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()