diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2021-11-22 11:03:47 +0100 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2021-11-24 03:54:31 +0100 |
commit | c6fbb0a9b4579af1f3d2429bda54bcae0cd6e38e (patch) | |
tree | 2820db1b6acfdc09c0b32ee741c72d56a148fb2e /sfx2 | |
parent | 6809461add683eaa49a11530445c1f4c4b3d8fe8 (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>
(cherry picked from commit 90db4351138dec97f8dd2ebc350e8aef18a5358f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125712
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/PanelTitleBar.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx index c99672a0f1c5..86a92d2d71a1 100644 --- a/sfx2/source/sidebar/PanelTitleBar.cxx +++ b/sfx2/source/sidebar/PanelTitleBar.cxx @@ -42,10 +42,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) |