summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/floatwin.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index dc6cd3c6b4df..57c5f7ec26a8 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -596,6 +596,11 @@ void FloatingWindow::LogicInvalidate(const tools::Rectangle* /*pRectangle*/)
void FloatingWindow::StateChanged( StateChangedType nType )
{
+ if (nType == StateChangedType::InitShow)
+ {
+ DoInitialLayout();
+ }
+
SystemWindow::StateChanged( nType );
Dialog* pParentDlg = GetParentDialog();
if (pParentDlg && nType == StateChangedType::InitShow && IsVisible())