Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

[macOS] BeginResizeDrag fails

Open mat1jaczyyy opened this issue 4 years ago • 8 comments

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 avatar Apr 28 '20 03:04 mat1jaczyyy

@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 avatar Apr 28 '20 23:04 danwalmsley

@danwalmsley We've previously had a managed implementation. What happened to it?

kekekeks avatar Apr 29 '20 07:04 kekekeks

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.

mat1jaczyyy avatar May 03 '20 05:05 mat1jaczyyy

working on a fix,

danwalmsley avatar May 03 '20 05:05 danwalmsley

@danwalmsley What's the state of this? Resizing still isn't implemented on 0.10.999-cibuild0012650-beta

mat1jaczyyy avatar Jan 23 '21 18:01 mat1jaczyyy

Just checked how Qt handles it. It doesn't support it as well. https://bugreports.qt.io/browse/QTBUG-88218

maxkatz6 avatar Mar 26 '22 03:03 maxkatz6

I believe SystemDecorations=None can be resized now on macOS. But BeginResizeDrag is not implemented there.

maxkatz6 avatar Jul 02 '22 22:07 maxkatz6

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

HendrikMennen avatar Oct 25 '22 12:10 HendrikMennen