vcl/source/control/tabctrl.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 9c6bf935cd447922f8e6c974d545832d03779b12 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Sat Mar 25 17:52:24 2023 -0800 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Mon Mar 27 16:51:37 2023 +0000 tdf#126632 tdf#152908 Resize the notebook bar on context change For other than gtk vcl backend the tabbed compact toolbar tabs do not repaint correctly when the 'Table' tab is active and the cursor is move outside of the table. This patch adds a Resize after the context is set to make the tabs always show as expected. Change-Id: Iedf8a6eea52c3c55e9c1266b7aa79bc0f34deb22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149593 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> (cherry picked from commit e0daa98a802cc1f84ceb0f306f5d15fecabd62c1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149599 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit b2575b26f403e97b5a1e85559d1506a0f60b3903) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149604 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 762587210f52..278fd59cd733 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2305,6 +2305,11 @@ void NotebookbarTabControlBase::SetContext( vcl::EnumContext::Context eContext ) if (!bHandled) bLastContextWasSupported = false; eLastContext = eContext; + + // tdf#152908 Tabbed compact toolbar does not repaint itself when tabs getting removed + // For unknown reason this is needed by the tabbed compact toolbar for other than gtk + // vcl backends. + Resize(); } void NotebookbarTabControlBase::dispose()