summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2024-08-12 12:18:37 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2024-08-15 08:49:04 +0200
commitac73760cc545e69704ddbee59be84351f1c3fa13 (patch)
tree9c48b0bb5626fb17743258e862a201e8f49aaf32
parentdf19cc6cddc794eb6e289831707e690bd01eb227 (diff)
tdf#134791 Back to fixed size, but increase it a bit
Turns out the approach implemented in 058f1d1b5246a9d57942541bef144143b0302383 doesn't work out when a smaller tab page is activated at first, since only the first tab page will define the dialog size. Change-Id: I1201a0e9174c842d4c023e8438763d6d538d3036 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171755 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
-rw-r--r--cui/source/options/treeopt.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index c7e909149330..d531e0a59d68 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -475,8 +475,9 @@ OfaTreeOptionsDialog::OfaTreeOptionsDialog(weld::Window* pParent, bool fromExten
, bNeedsRestart(false)
, eRestartReason(svtools::RESTART_REASON_NONE)
{
- xTreeLB->set_size_request(xTreeLB->get_approximate_digit_width() * 35,
- xTreeLB->get_height_rows(30));
+ Size aSize(xTreeLB->get_approximate_digit_width() * 100, xTreeLB->get_height_rows(30));
+ xTabBox->set_size_request(aSize.Width(), aSize.Height());
+ xTreeLB->set_size_request(xTreeLB->get_approximate_digit_width() * 35, aSize.Height());
// Init tree and handler
xTreeLB->set_help_id(HID_OFADLG_TREELISTBOX);