summaryrefslogtreecommitdiff
path: root/vcl/source/window/layout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r--vcl/source/window/layout.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 5b29ff125307..7ee56d5158ab 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2494,6 +2494,7 @@ void MessageDialog::set_secondary_text(const OUString &rSecondaryString)
void MessageDialog::StateChanged(StateChangedType nType)
{
+ Dialog::StateChanged(nType);
if (nType == StateChangedType::InitShow)
{
// MessageBox should be at least as wide as to see the title
@@ -2501,9 +2502,11 @@ void MessageDialog::StateChanged(StateChangedType nType)
// Extra-Width for Close button
nTitleWidth += mpWindowImpl->mnTopBorder;
if (get_preferred_size().Width() < nTitleWidth)
+ {
set_width_request(nTitleWidth);
+ DoInitialLayout();
+ }
}
- Dialog::StateChanged(nType);
}
VclVPaned::VclVPaned(vcl::Window *pParent)