diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-26 19:48:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-27 09:53:20 +0100 |
commit | 37f5f9896449c6e2cb9aa481f004cd887672d2ed (patch) | |
tree | 08d64e511b9d642b5c7711fba9c1ae6cf6d34090 /svx/source/sidebar/paragraph | |
parent | 960bc8553328c6bfb8818094195e0f737eb013a9 (diff) |
tdf#130197 give paragraph and table panels column widths of 5 toolbutton widths
Change-Id: Iae4f10eef6b293731d22eec8dcbb85a07d3e6c11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87462
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/sidebar/paragraph')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index 0a01b42a8654..01dd63823e9e 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -445,6 +445,13 @@ ParaPropertyPanel::ParaPropertyPanel(vcl::Window* pParent, mpBindings(pBindings), mxSidebar(rxSidebar) { + // tdf#130197 We want to give this toolbar a width as if it had 5 entries + // (the parent grid has homogeneous width set so both columns will have the + // same width). This ParaPropertyPanel is a default panel in writer, so + // subsequent panels, e.g. the TableEditPanel panel can have up to 5 + // entries in each of its column and remain in alignment with this panel + padWidthForSidebar(*mxTBxIndent, rxFrame); + initial(); m_aMetricCtl.RequestUpdate(); } |