Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird window behaviour with SystemDecorations None and resizing #15301

Open
AlexanderBlackman opened this issue Apr 10, 2024 · 3 comments
Open

Comments

@AlexanderBlackman
Copy link

Describe the bug

No matter whether CanResize is true or false, the top edge allows resizing but the bottom and sides don't.

TL TR Corners only allow vertical resize (and the icon is the vertical one), BL BR corners don't allow resize.

This occurs, no matter the size or content.

To Reproduce

Set a window's ExtendClientAreaToDecorationsHint to True
and SystemDecorations to None

Expected behavior

Standard resize behaviour if CanResize is true.
No resize behavoir if it is false.

Avalonia version

11.1.0

OS

No response

Additional context

TBH, I'd actually appreciate a feature to chose an edge to resize from and/or an option restrict it to horizontal/vertical/proportionate.

@laolarou726
Copy link
Contributor

laolarou726 commented Apr 13, 2024

I also noticed this issue. Furthermore, when using SystemDecorations=None/Border, the window will lose its minimized animation. IIRC this issue existed after a certain release of Avalonia Nightly

@AlexanderBlackman
Copy link
Author

I also noticed this issue. Furthermore, when using SystemDecorations=None/Border, the window will lose its minimized animation. IIRC this issue existed after a certain release of Avalonia Nightly

That's actually good to hear, if it didn't have this behaviour before, then its just a bug and not an intrinsic part of how Avaloniia works.

@timunie
Copy link
Contributor

timunie commented Apr 14, 2024

A PR is welcome if anyone figures out how to solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants