cui/source/options/treeopt.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit c42fc32538d3c6f49ff8f5be6a6d627e6c4fed49 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 10:52:13 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> (cherry picked from commit ac73760cc545e69704ddbee59be84351f1c3fa13) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171776 Tested-by: allotropia jenkins <jenk...@allotropia.de> diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 5070662681c1..33fae2a27abd 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -481,8 +481,9 @@ void OfaTreeOptionsDialog::InitWidgets() xTreeLB = m_xBuilder->weld_tree_view("pages"); xTabBox = m_xBuilder->weld_container("box"); - 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()); } // Ctor() with Frame -----------------------------------------------------