vcl/source/control/ivctrl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit c6b9c12d6a08d2f80f4a9b5d10b1be00e3b1d454 Author: Heiko Tietze <[email protected]> AuthorDate: Thu Jun 26 17:26:50 2025 +0200 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Jun 26 21:35:31 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]> diff --git a/vcl/source/control/ivctrl.cxx b/vcl/source/control/ivctrl.cxx index 9d43ead8a293..c32b1bf1b552 100644 --- a/vcl/source/control/ivctrl.cxx +++ b/vcl/source/control/ivctrl.cxx @@ -578,7 +578,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)
