From dac734433b18f546df84ced0c669b96a3c6a2b22 Mon Sep 17 00:00:00 2001 From: Ethan Evans Date: Mon, 16 Dec 2024 12:53:45 -0800 Subject: [PATCH] fixes #378 - Present host window after setting size --- src/Dock.Model/Adapters/HostAdapter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dock.Model/Adapters/HostAdapter.cs b/src/Dock.Model/Adapters/HostAdapter.cs index 3baf45227..1db43bb11 100644 --- a/src/Dock.Model/Adapters/HostAdapter.cs +++ b/src/Dock.Model/Adapters/HostAdapter.cs @@ -53,12 +53,12 @@ public void Present(bool isDialog) if (_window.Host is not null) { - _window.Host.Present(isDialog); _window.Host.SetPosition(_window.X, _window.Y); _window.Host.SetSize(_window.Width, _window.Height); _window.Host.SetTitle(_window.Title); _window.Host.SetLayout(_window.Layout); _window.Host.IsTracked = true; + _window.Host.Present(isDialog); } } @@ -73,4 +73,4 @@ public void Exit() _window.Host = null; } } -} \ No newline at end of file +}