Avalonia
Avalonia copied to clipboard
[macOS] BeginResizeDrag fails
Resizing Window with HasSystemDecorations="False" is impossible
I reported an issue a year ago about macOS being able to resize under this condition while Windows couldn't (#2397). This got fixed at some point and the window can't be resized anymore, consistently with Windows.
Now BeginResizeDrag fails silently, making it impossible to resize windows with HasSystemDecorations="False"
. There is no exception. #3835 also seems to only have issues with resizing, and only with decorations disabled, however here it doesn't work no matter the value of decorations.
macOS 10.13 / cibuild0006821
@mat1jaczyyy BeginResizeDrag
is a noop on osx...
https://github.com/AvaloniaUI/Avalonia/blob/master/native/Avalonia.Native/src/OSX/window.mm#L274
I believe its because osx keeps a resizing border... what was the last version it did work?
@danwalmsley We've previously had a managed implementation. What happened to it?
I can't access cibuilds prior to 6492, but I have 6058 cached locally. Resizing works on 6058, but not 6492, so it was broken sometime in between those builds.
working on a fix,
@danwalmsley What's the state of this? Resizing still isn't implemented on 0.10.999-cibuild0012650-beta
Just checked how Qt handles it. It doesn't support it as well. https://bugreports.qt.io/browse/QTBUG-88218
I believe SystemDecorations=None can be resized now on macOS. But BeginResizeDrag is not implemented there.
Trying to fix this for https://github.com/wieslawsoltes/Dock. Can't seem to make it work to resize a borderless window, so I think this is still relevant