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

Width and Height Window Properties are Ignored when SystemDecorations is Set to BorderOnly #14942

Closed
Elbon-Eastmage opened this issue Mar 12, 2024 · 3 comments · Fixed by #14954

Comments

@Elbon-Eastmage
Copy link

Describe the bug

When the SystemDecorations property of a Window is set to BorderOnly, the Width and Height properties don't have any effect. However, they do work when SystemDecorations is set to either None or Full.

To Reproduce

  1. Set up a new Avalonia Project.
  2. Go to MainWindow.axaml.
  3. Add Width="450" and Height="450".
  4. Add SystemDecorations="BorderOnly".
  5. Run the program.

Expected behavior

No response

Avalonia version

11.0.10

OS

Windows

Additional context

No response

@maxkatz6
Copy link
Member

cc @emmauss

@timunie
Copy link
Contributor

timunie commented Mar 13, 2024

@Elbon-Eastmage does it also happen using 11.1.0-beta1?

@emmauss
Copy link
Contributor

emmauss commented Mar 13, 2024

I can reproduce it on master.

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