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

Window ExtendClientArea Broken in 11.1-beta2 #15532

Closed
robloo opened this issue Apr 26, 2024 · 5 comments · Fixed by #15552
Closed

Window ExtendClientArea Broken in 11.1-beta2 #15532

robloo opened this issue Apr 26, 2024 · 5 comments · Fixed by #15552

Comments

@robloo
Copy link
Contributor

robloo commented Apr 26, 2024

Describe the bug

It seems both ExtendClientAreaChromeHints and ExtendClientAreaToDecorationsHint have been broken in 11.1 beta2.

  1. The app is not extending into the titlebar at first window load. It does however fix itself when the app is resized
  2. The system window buttons (minimize, maximize, close) never appear (duplicate of Window can't be dragged using title bar and no caption buttons rendered with extend client area #15522)

image

To Reproduce

<Window
    ExtendClientAreaChromeHints="PreferSystemChrome"
    ExtendClientAreaToDecorationsHint="True">

Expected behavior

image

Avalonia version

11.1-beta2

OS

Windows

Additional context

There are recent PRs in this area. One of them broke this functionality.

Otherwise, on my end this code has worked fine since 11.0 previews and is unchanged since.

@robloo robloo added the bug label Apr 26, 2024
@jp2masa
Copy link
Contributor

jp2masa commented Apr 27, 2024

Duplicate of #15522?

@robloo
Copy link
Contributor Author

robloo commented Apr 27, 2024

#15522 is a duplicate of point number 2 above (no caption buttons). However, the first one appears to be different.

@TomEdwardsEnscape
Copy link
Contributor

#14470 is an obvious candidate, but it was included in beta1. Was everything OK in that version?

@robloo
Copy link
Contributor Author

robloo commented Apr 28, 2024

#14470 is an obvious candidate, but it was included in beta1. Was everything OK in that version?

@TomEdwardsEnscape Yes, 11.1-beta1 doesn't have these issues.

@robloo
Copy link
Contributor Author

robloo commented Apr 28, 2024

Also note that extend into client area does work again if the Window is resized. So another PR just broke the startup path that was applying this property on first load.

(The caption buttons are still broken reguardless)

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

Successfully merging a pull request may close this issue.

4 participants