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

WindowNotificationManager with NotificationPosition.BottomCenter incorrectly opens at the top #17818

Closed
lebhero opened this issue Dec 22, 2024 · 2 comments

Comments

@lebhero
Copy link

lebhero commented Dec 22, 2024

Describe the bug

There is an issue with the WindowNotificationManager control in Avalonia when using the NotificationPosition.BottomCenter setting. While the notification is expected to appear at the bottom center of the window, it instead opens at the top of the window. Other NotificationPosition values (e.g., TopLeft, BottomLeft, etc.) work as expected. This behavior seems to be specific to BottomCenter.

To Reproduce

_windowNotificationManager = new WindowNotificationManager(mainWindow)
{
    MaxItems = 3,
    Position = NotificationPosition.BottomCenter
};
var not = new Notification("Test", "this is a test notification message", NotificationType.Warning);
_windowNotificationManager.Show(not);

Expected behavior

The notification should appear at the bottom center of the window when the NotificationPosition.BottomCenter setting is used, with its position adjusted appropriately at the bottom edge of the window.

Avalonia version

11.2.3

OS

Windows

Additional context

No response

@lebhero lebhero added the bug label Dec 22, 2024
@rabbitism
Copy link
Contributor

image

It works well in demo. Which theme are you using?

@lebhero
Copy link
Author

lebhero commented Dec 22, 2024

@rabbitism : sorry, my mistake ... i am using FluentAvaloniaTheme...

@lebhero lebhero closed this as completed Dec 22, 2024
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

3 participants