cui/source/options/treeopt.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit ac73760cc545e69704ddbee59be84351f1c3fa13
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Mon Aug 12 12:18:37 2024 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Aug 15 08:49:04 2024 +0200

    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.mehrbr...@allotropia.de>

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);

Reply via email to