Skip to content

Commit

Permalink
fixes #378 - Present host window after setting size
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanavatar committed Dec 16, 2024
1 parent 6535b92 commit dac7344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dock.Model/Adapters/HostAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -73,4 +73,4 @@ public void Exit()
_window.Host = null;
}
}
}
}

0 comments on commit dac7344

Please sign in to comment.