cui/source/options/treeopt.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 4ed85ac76c91ab385688168051e230e734199c1e Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Mon Aug 12 12:18:37 2024 +0200 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> CommitDate: Tue Nov 5 17:55:56 2024 +0100 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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176083 Tested-by: allotropia jenkins <jenk...@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behr...@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);