diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-04-25 11:28:58 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2020-07-06 08:41:04 +0200 |
commit | 20f04a0c85e15aca46e181ac489b11d84d789a8e (patch) | |
tree | e07671945acd41b7a40f0ec211c848a9bc15a1ba /vcl | |
parent | 23f871ff12d3dbb37ac7a4cbe51bf6f15661afe4 (diff) |
tdf#123292 notebookbar: vertical align for shortcuts toolbar
Change-Id: I2f2ccee9d6c01962d5d8609ea55c0c2bca6b5cb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92892
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 96e5121869e95a8e28788a91ce0dc480e5f10c0b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97463
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 8 |
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; } |