diff options
author | Jim Raykowski <raykowj@gmail.com> | 2023-03-25 17:52:24 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2023-03-26 23:47:55 +0000 |
commit | e0daa98a802cc1f84ceb0f306f5d15fecabd62c1 (patch) | |
tree | 2d61268a1d9f1de2379b6f43424b434291e3c06d | |
parent | 9917f1fa0e159b8d237639a99335b4cdb5e4fdc2 (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>
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index b2f86b3cd9a5..8cf999814820 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2312,6 +2312,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() |