vcl/source/control/tabctrl.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 553e1ae91bf66728dfb3d9f14b3abefae1d279c6 Author: Patrick Luby <guibmac...@gmail.com> AuthorDate: Thu Aug 22 17:03:27 2024 -0400 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Thu Aug 29 07:44:21 2024 +0200 tdf#127610 subtract width of shortcuts from width available for tab items Change-Id: Ia520f6b982e52e7154b3b02ba77562a3b212efd1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172301 Reviewed-by: Patrick Luby <guibomac...@gmail.com> Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Tested-by: Jenkins (cherry picked from commit d3dd080524d98bcf0560d3b54ad2309610b22c20) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172501 Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index cafbae98623c..82d899eaa787 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2373,7 +2373,8 @@ bool NotebookbarTabControlBase::ImplPlaceTabs( tools::Long nWidth ) } // we always have only one line of tabs - lcl_AdjustSingleLineTabs(nMaxWidth, mpTabCtrlData.get()); + // tdf#127610 subtract width of shortcuts from width available for tab items + lcl_AdjustSingleLineTabs(nMaxWidth - nShortcutsWidth, mpTabCtrlData.get()); // position the shortcutbox if (m_pShortcuts)