summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2021-04-14 14:19:19 +0200
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2021-04-16 10:46:00 +0200
commit0255a3f1704e50c478bd9a9e3e389a5e1f23ae81 (patch)
treed63fd8fa46d4be94085fb8ada0d355804b91077e /svx/source/sidebar
parent5348b3946b8f2b9581cdd8b40fa774c2a9d23868 (diff)
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@documentfoundation.org>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/inspector/InspectorTextPanel.cxx8
1 files changed, 5 insertions, 3 deletions
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);
}