summaryrefslogtreecommitdiff
path: root/cui/source/options/treeopt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/treeopt.cxx')
-rw-r--r--cui/source/options/treeopt.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 076a000d86b2..fccf0c14df59 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -19,6 +19,7 @@
#include <memory>
#include <config_features.h>
+#include <config_gpgme.h>
#include <svx/dialogs.hrc>
@@ -490,9 +491,15 @@ void OfaTreeOptionsDialog::InitWidgets()
get(pTabBox, "box");
Size aSize(pTabBox->LogicToPixel(Size(278, 259), MapMode(MapUnit::MapAppFont)));
pTabBox->set_width_request(aSize.Width());
+#if HAVE_FEATURE_GPGME
+ // tdf#115015: make enough space for crypto settings (approx. 14 text edits + padding)
+ pTabBox->set_height_request((Edit::GetMinimumEditSize().Height() + 6) * 14);
+#else
pTabBox->set_height_request(aSize.Height() - get_action_area()->get_preferred_size().Height());
+#endif
pTreeLB->set_width_request(pTreeLB->approximate_char_width() * 25);
pTreeLB->set_height_request(pTabBox->get_height_request());
+
}
// Ctor() with Frame -----------------------------------------------------