Skip to content

Commit

Permalink
Merge pull request #379 from ethanavatar/master
Browse files Browse the repository at this point in the history
fixes #378 - Present host window after setting size
  • Loading branch information
wieslawsoltes authored Jan 27, 2025
2 parents 36ee2a0 + 154e2ee commit 295a12e
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 295a12e

Please sign in to comment.