Skip to content

Commit

Permalink
Merge pull request #8089 from AvaloniaUI/fixes/min-size-titlebar-glitch
Browse files Browse the repository at this point in the history
OSX: use content min/max size for minsize.
  • Loading branch information
danwalmsley committed May 10, 2022
1 parent 019b0fb commit 86d469a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions native/Avalonia.Native/src/OSX/WindowBaseImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@
START_COM_CALL;

@autoreleasepool {
[Window setMinSize:ToNSSize(minSize)];
[Window setMaxSize:ToNSSize(maxSize)];
[Window setContentMinSize:ToNSSize(minSize)];
[Window setContentMaxSize:ToNSSize(maxSize)];

return S_OK;
}
Expand All @@ -242,8 +242,8 @@
auto resizeBlock = ResizeScope(View, reason);

@autoreleasepool {
auto maxSize = [Window maxSize];
auto minSize = [Window minSize];
auto maxSize = [Window contentMaxSize];
auto minSize = [Window contentMinSize];

if (x < minSize.width) {
x = minSize.width;
Expand Down

0 comments on commit 86d469a

Please sign in to comment.