summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/control/tabctrl.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 1f32f7de8c1a..d39b50866366 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2368,10 +2368,14 @@ bool NotebookbarTabControlBase::ImplPlaceTabs( long nWidth )
// position the shortcutbox
if (m_pShortcuts)
- m_pShortcuts->SetPosPixel(Point(0, 0));
+ {
+ long nPosY = (m_nHeaderHeight - m_pShortcuts->GetSizePixel().getHeight()) / 2;
+ m_pShortcuts->SetPosPixel(Point(0, nPosY));
+ }
+ long nPosY = (m_nHeaderHeight - m_pOpenMenu->GetSizePixel().getHeight()) / 2;
// position the menu
- m_pOpenMenu->SetPosPixel(Point(nWidth - HAMBURGER_DIM, 0));
+ m_pOpenMenu->SetPosPixel(Point(nWidth - HAMBURGER_DIM, nPosY));
return true;
}