cui/source/options/treeopt.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
New commits: commit 3f97fd1e3522215f2f43a052f61785c8d32be1b6 Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Fri Aug 9 08:17:57 2024 +0200 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> CommitDate: Tue Nov 5 16:44:46 2024 +0100 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/+/171662 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176082 Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de> Tested-by: allotropia jenkins <jenk...@allotropia.de> diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 27d3d8f243e8..c7e909149330 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -475,13 +475,8 @@ OfaTreeOptionsDialog::OfaTreeOptionsDialog(weld::Window* pParent, bool fromExten , bNeedsRestart(false) , eRestartReason(svtools::RESTART_REASON_NONE) { - 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((weld::GetMinimumEditHeight() + 6) * 14); -#endif - xTabBox->set_size_request(aSize.Width(), aSize.Height()); - xTreeLB->set_size_request(xTreeLB->get_approximate_digit_width() * 35, aSize.Height()); + xTreeLB->set_size_request(xTreeLB->get_approximate_digit_width() * 35, + xTreeLB->get_height_rows(30)); // Init tree and handler xTreeLB->set_help_id(HID_OFADLG_TREELISTBOX);