[Libreoffice-commits] core.git: svx/source
Heiko Tietze (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 16 08:46:36 UTC 2021
svx/source/sidebar/inspector/InspectorTextPanel.cxx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 0255a3f1704e50c478bd9a9e3e389a5e1f23ae81
Author: Heiko Tietze <tietze.heiko at gmail.com>
AuthorDate: Wed Apr 14 14:19:19 2021 +0200
Commit: Heiko Tietze <heiko.tietze at 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.tietze at 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);
}
More information about the Libreoffice-commits
mailing list