Skip to content

Commit

Permalink
Merge pull request #2594 from cwensley/curtis/mac-remember-window-loc…
Browse files Browse the repository at this point in the history
…ation

Mac: Window.Location should return set value before loaded
  • Loading branch information
cwensley authored Dec 8, 2023
2 parents 4b733ae + 3b6f314 commit 5fb78c0
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 5fb78c0

Please sign in to comment.