svx/source/sidebar/inspector/InspectorTextPanel.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit 0255a3f1704e50c478bd9a9e3e389a5e1f23ae81 Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Wed Apr 14 14:19:19 2021 +0200 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Fri Apr 16 10:46:00 2021 +0200 Related tdf#136764 - Minimum width for Styles Inspector Set to 200px; columns made a bit smaller too Change-Id: If146afafead4be2781a132a797b21ff9d67b00b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114088 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/svx/source/sidebar/inspector/InspectorTextPanel.cxx b/svx/source/sidebar/inspector/InspectorTextPanel.cxx index 8054cb9ee4c5..84a681055abf 100644 --- a/svx/source/sidebar/inspector/InspectorTextPanel.cxx +++ b/svx/source/sidebar/inspector/InspectorTextPanel.cxx @@ -31,6 +31,8 @@ using namespace css; +const int MinimumPanelWidth = 250; + namespace svx::sidebar { std::unique_ptr<PanelLayout> InspectorTextPanel::Create(weld::Widget* pParent) @@ -45,11 +47,11 @@ InspectorTextPanel::InspectorTextPanel(weld::Widget* pParent) : PanelLayout(pParent, "InspectorTextPanel", "svx/ui/inspectortextpanel.ui") , mpListBoxStyles(m_xBuilder->weld_tree_view("listbox_fonts")) { - mpListBoxStyles->set_size_request(-1, -1); + mpListBoxStyles->set_size_request(MinimumPanelWidth, -1); float fWidth = mpListBoxStyles->get_approximate_digit_width(); std::vector<int> aWidths; - aWidths.push_back(fWidth * 34); - aWidths.push_back(fWidth * 34); + aWidths.push_back(fWidth * 29); + aWidths.push_back(fWidth * 10); mpListBoxStyles->set_column_fixed_widths(aWidths); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits