Skip to content

Commit

Permalink
fix maximized margin
Browse files Browse the repository at this point in the history
  • Loading branch information
kikipoulet committed Aug 26, 2024
1 parent 1016556 commit e6d68db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SukiUI/Controls/SukiWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ private void OnWindowStateChanged(WindowState state)
{
if (state == WindowState.FullScreen)
CanResize = CanMove = false;

if (state == WindowState.Maximized)
Margin = new Thickness(7);
else
Margin = new Thickness(0);
}

private void OnTitleBarPointerPressed(object? sender, PointerPressedEventArgs e)
Expand Down

0 comments on commit e6d68db

Please sign in to comment.