summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2023-03-25 17:52:24 -0800
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2023-03-27 16:51:37 +0000
commit9c6bf935cd447922f8e6c974d545832d03779b12 (patch)
treeab726aa377499f2a5bc5797eb980a4ec971fac52
parenta3d1ace9e8a36820acef3b9d2a02e4b3c304d455 (diff)
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 <raykowj@gmail.com> (cherry picked from commit e0daa98a802cc1f84ceb0f306f5d15fecabd62c1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149599 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit b2575b26f403e97b5a1e85559d1506a0f60b3903) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149604 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r--vcl/source/control/tabctrl.cxx5
1 files changed, 5 insertions, 0 deletions
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()