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

New commits:
commit 6d74e80c30cc172ed4dcfe10713b99098d5e5feb
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Fri Aug 9 08:17:57 2024 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Aug 15 08:49:33 2024 +0200

    tdf#134791 Let options dialog determine its own size based on tab pages
    
    Instead of forcing some random size on it, which leads to widgets being cut 
off.
    
    Change-Id: I4acd350b380988a2ae7bb091241daa985025b5ce
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171672
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
    Tested-by: allotropia jenkins <jenk...@allotropia.de>

diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index c3005688e297..5070662681c1 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -480,13 +480,9 @@ void OfaTreeOptionsDialog::InitWidgets()
     xBackPB = m_xBuilder->weld_button("revert");
     xTreeLB = m_xBuilder->weld_tree_view("pages");
     xTabBox = m_xBuilder->weld_container("box");
-    Size aSize(xTreeLB->get_approximate_digit_width() * 82, 
xTreeLB->get_height_rows(30));
-#if HAVE_FEATURE_GPGME
-    // tdf#115015: make enough space for crypto settings (approx. 14 text 
edits + padding)
-    aSize.setHeight((Edit::GetMinimumEditSize().Height() + 6) * 14);
-#endif
-    xTabBox->set_size_request(aSize.Width(), aSize.Height());
-    xTreeLB->set_size_request(xTreeLB->get_approximate_digit_width() * 30, 
aSize.Height());
+
+    xTreeLB->set_size_request(xTreeLB->get_approximate_digit_width() * 35,
+                              xTreeLB->get_height_rows(30));
 }
 
 // Ctor() with Frame -----------------------------------------------------

Reply via email to