summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authordiwanshu885 <dmittal885@gmail.com>2020-12-09 00:44:10 +0530
committerJim Raykowski <raykowj@gmail.com>2021-01-15 22:49:57 +0100
commite97bccdba42b464e2df8d5996d4cdc9b03b6c243 (patch)
tree3eeb509651de62a35f5a36beb8eae9130f4c8ab9 /cui
parent405aa1b6a226c58966d319f25e4ebf2e400d5e50 (diff)
tdf#128176 Add a vertical scrollwindow to fontfeaturesdialog
Change-Id: Id58b3888069fd0136f5620cb5f82c8649a0dfd76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107435 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/FontFeaturesDialog.cxx5
-rw-r--r--cui/uiconfig/ui/fontfeaturesdialog.ui5
2 files changed, 8 insertions, 2 deletions
diff --git a/cui/source/dialogs/FontFeaturesDialog.cxx b/cui/source/dialogs/FontFeaturesDialog.cxx
index c1e79b4515d7..71c9e34d3e73 100644
--- a/cui/source/dialogs/FontFeaturesDialog.cxx
+++ b/cui/source/dialogs/FontFeaturesDialog.cxx
@@ -75,6 +75,11 @@ void FontFeaturesDialog::initialize()
fillGrid(rFilteredFontFeatures);
+ m_xContentWindow->set_size_request(
+ -1, std::min(std::max(m_xContentWindow->get_preferred_size().Height(),
+ m_xContentGrid->get_preferred_size().Height()),
+ 300L));
+
updateFontPreview();
}
diff --git a/cui/uiconfig/ui/fontfeaturesdialog.ui b/cui/uiconfig/ui/fontfeaturesdialog.ui
index f283cff7ebed..fa36d66ff476 100644
--- a/cui/uiconfig/ui/fontfeaturesdialog.ui
+++ b/cui/uiconfig/ui/fontfeaturesdialog.ui
@@ -84,8 +84,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
- <property name="vscrollbar_policy">never</property>
- <property name="shadow_type">in</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">none</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
@@ -98,6 +98,7 @@
<property name="valign">start</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
+ <property name="margin">6</property>
<child>
<placeholder/>
</child>