You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s = s | NSWindowStyleMaskTitled | NSWindowStyleMaskFullSizeContentView;
break;
case SystemDecorationsFull:
s = s | NSWindowStyleMaskTitled | NSWindowStyleMaskClosable;
if ((_canResize && _isEnabled) || _transitioningWindowState) {
s = s | NSWindowStyleMaskResizable;
}
break;
}
here, NSWindowStyleMaskResizable is applied only if SystemDecorations = Full, otherwise this flag is not applied and the window is not resizable. I don't think there is a reason to apply it only in SystemDecorations = Full case.
For the Classic Theme, I wanted to disable decorations on macOS, which causes rounded corners and adds shadow, but the window still should be resizable when CanResize = true.
To Reproduce
Create a window, set SystemDecorations = None and set CanResize = true (default) - the window won't be resizable.
Expected behavior
No response
Avalonia version
11.1.x
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Avalonia/native/Avalonia.Native/src/OSX/WindowImpl.mm
Lines 562 to 578 in 143399f
here,
NSWindowStyleMaskResizable
is applied only if SystemDecorations = Full, otherwise this flag is not applied and the window is not resizable. I don't think there is a reason to apply it only in SystemDecorations = Full case.For the Classic Theme, I wanted to disable decorations on macOS, which causes rounded corners and adds shadow, but the window still should be resizable when CanResize = true.
To Reproduce
Create a window, set SystemDecorations = None and set CanResize = true (default) - the window won't be resizable.
Expected behavior
No response
Avalonia version
11.1.x
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered: