diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2024-08-09 08:17:57 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-11-05 16:44:46 +0100 |
commit | 3f97fd1e3522215f2f43a052f61785c8d32be1b6 (patch) | |
tree | 1ffcf5a15c6254e6f976146c129f1226cc0474dd | |
parent | b61bc0cd4a56df4e24800b9ddbdce3a07d9688d2 (diff) |
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.mehrbrodt@allotropia.de>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176082
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: allotropia jenkins <jenkins@allotropia.de>
-rw-r--r-- | cui/source/options/treeopt.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
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); |