diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index b2094e04631b..7261b12eeb82 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -340,7 +340,7 @@ void SidebarController::NotifyResize() } vcl::Window* pParentWindow = mpTabBar->GetParent(); - sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor(); + const sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor(); const sal_Int32 nWidth (pParentWindow->GetSizePixel().Width()); const sal_Int32 nHeight (pParentWindow->GetSizePixel().Height()); @@ -372,13 +372,17 @@ void SidebarController::NotifyResize() else // attach the Sidebar towards the right-side of screen { nDeckX = 0; - nTabX = nWidth-nTabBarDefaultWidth; + nTabX = nWidth - nTabBarDefaultWidth; } // Place the deck first. if (bIsDeckVisible) { - mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth - nTabBarDefaultWidth, nHeight); + // No TabBar in LOK. + if (comphelper::LibreOfficeKit::isActive()) + mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth, nHeight); + else + mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth - nTabBarDefaultWidth, nHeight); mpCurrentDeck->Show(); mpCurrentDeck->RequestLayout(); } @@ -387,8 +391,8 @@ void SidebarController::NotifyResize() // Now place the tab bar. mpTabBar->setPosSizePixel(nTabX, 0, nTabBarDefaultWidth, nHeight); - mpTabBar->Show(); - + if (!comphelper::LibreOfficeKit::isActive()) + mpTabBar->Show(); // Don't show TabBar in LOK. } // Determine if the closer of the deck can be shown. |