Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrise committed Mar 9, 2024
1 parent cc0137d commit c058b45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Omnius.Core.Avalonia/RestorableWindow.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.ComponentModel;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Threading;
Expand Down Expand Up @@ -61,7 +60,7 @@ private void OnPositionChanged(PixelPoint position)
{
if (this.WindowState == global::Avalonia.Controls.WindowState.Normal)
{
_positionBeforeResizing = position;
_positionBeforeResizing = this.Position;
}
}, DispatcherPriority.Background);
}
Expand All @@ -72,7 +71,7 @@ private void OnClientSizeChanged(Size size)
{
if (this.WindowState == global::Avalonia.Controls.WindowState.Normal)
{
_clientSizeBeforeResizing = size;
_clientSizeBeforeResizing = this.ClientSize;
}
}, DispatcherPriority.Background);
}
Expand Down

0 comments on commit c058b45

Please sign in to comment.