Skip to content

Commit

Permalink
Mac: Window.Location should return set value before loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Dec 8, 2023
1 parent 4b733ae commit 3b6f314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Eto.Mac/Forms/MacWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,8 @@ public virtual Point Location
{
if (oldLocation != null)
return oldLocation.Value;
if (!Widget.Loaded && InitialLocation != null)
return InitialLocation.Value;
// translate location relative to the top left corner of main screen
var mainFrame = NSScreen.Screens[0].Frame;
var frame = Control.Frame;
Expand Down

0 comments on commit 3b6f314

Please sign in to comment.