summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-09 20:35:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-09 20:36:17 +0100
commit8b867887022903bc5788b01db51dfcec521dc878 (patch)
tree9d252c84e4f16ea473fe0b40138267e48290184d
parentcf6bfd666843c1cfc75e453e6e7f0405173a1831 (diff)
Related: tdf#72007 align to right if undocked
Change-Id: Ia0af0493e0af6c945006e6a1f6f918f7b104068d
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index d71718e3db68..00e3f7f3701a 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
{