[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara
caolanm at redhat.com
Sat May 9 12:36:40 PDT 2015
sfx2/source/sidebar/SidebarController.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 8b867887022903bc5788b01db51dfcec521dc878
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat May 9 20:35:30 2015 +0100
Related: tdf#72007 align to right if undocked
Change-Id: Ia0af0493e0af6c945006e6a1f6f918f7b104068d
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index d71718e..00e3f7f 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -323,7 +323,7 @@ void SidebarController::NotifyResize()
if (mpCurrentDeck)
{
SfxSplitWindow* pSplitWindow = GetSplitWindow();
- WindowAlign eAlign = pSplitWindow ? pSplitWindow->GetAlign() : WINDOWALIGN_LEFT;
+ WindowAlign eAlign = pSplitWindow ? pSplitWindow->GetAlign() : WINDOWALIGN_RIGHT;
long nDeckX, nTabX;
if (eAlign == WINDOWALIGN_LEFT) // attach the Sidebar towards the left-side of screen
{
@@ -630,7 +630,7 @@ void SidebarController::SwitchToDeck (
SfxSplitWindow* pSplitWindow = GetSplitWindow();
sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor();
- WindowAlign eAlign = pSplitWindow ? pSplitWindow->GetAlign() : WINDOWALIGN_LEFT;
+ WindowAlign eAlign = pSplitWindow ? pSplitWindow->GetAlign() : WINDOWALIGN_RIGHT;
long nDeckX;
if (eAlign == WINDOWALIGN_LEFT) // attach the Sidebar towards the left-side of screen
{
More information about the Libreoffice-commits
mailing list