summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2021-11-22 11:03:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-11-23 18:35:00 +0100
commit90db4351138dec97f8dd2ebc350e8aef18a5358f (patch)
tree814c53f2114e3acd5aa95ba14d68aeaac1dab699 /sfx2/source/sidebar
parent365b3f1f21cc799b5a8ab7be63a5725abf6baed9 (diff)
Resolves tdf#145801 - Uniform height for sidebar's panel titles
Set height of all panel titles to the maximum height a panel title could need Change-Id: I1c023224fbca09b8f73151126b25df5f438260ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125650 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r--sfx2/source/sidebar/PanelTitleBar.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx
index 9b656b8323f0..6e0677252e4b 100644
--- a/sfx2/source/sidebar/PanelTitleBar.cxx
+++ b/sfx2/source/sidebar/PanelTitleBar.cxx
@@ -41,10 +41,16 @@ PanelTitleBar::PanelTitleBar(const OUString& rsTitle,
mxExpander->set_label(rsTitle);
mxExpander->connect_expanded(LINK(this, PanelTitleBar, ExpandHdl));
+ // tdf#145801 lock the height to the size it needs with the "toolbar" button shown
+ // so all of the titlebars are the same height if the "toolbar" is hidden in some
+ // of them
+ mxToolBox->show();
+ mxTitlebar->set_size_request(-1, mxTitlebar->get_preferred_size().Height());
+ mxToolBox->hide();
+
assert(mpPanel);
UpdateExpandedState();
-
}
void PanelTitleBar::SetTitle(const OUString& rsTitle)