vcl/source/control/ivctrl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 7a59dcf7c73d5236df6f2c454f5f41a8cdb214e4 Author: Heiko Tietze <[email protected]> AuthorDate: Thu Jun 26 17:26:50 2025 +0200 Commit: Heiko Tietze <[email protected]> CommitDate: Fri Jun 27 15:46:44 2025 +0200 Resolves tdf#161492 - Consider tab width for dialog size Change-Id: Ia503ba49fcf6f9f3fb3abab34c1b95f62b0e6ba0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187058 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> (cherry picked from commit c6b9c12d6a08d2f80f4a9b5d10b1be00e3b1d454) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187079 Reviewed-by: Heiko Tietze <[email protected]> diff --git a/vcl/source/control/ivctrl.cxx b/vcl/source/control/ivctrl.cxx index 2c4b0fac0c6e..fba747ae23db 100644 --- a/vcl/source/control/ivctrl.cxx +++ b/vcl/source/control/ivctrl.cxx @@ -558,7 +558,9 @@ Size VerticalTabControl::GetOptimalSize() const aOptimalPageSize.setHeight( aPagePrefSize.Height() ); } - return aOptimalPageSize; + Size aChooserSize(m_xChooser->get_preferred_size()); + return Size(aChooserSize.Width() + aOptimalPageSize.Width(), + std::max(aChooserSize.Height(), aOptimalPageSize.Height())); } void VerticalTabControl::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
