Browse Source

Merge pull request #9592 from item-industrietechnik/master

Notifications: Correctly set parent
pull/9629/head
Max Katz 3 years ago
committed by GitHub
parent
commit
b72c33ea28
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Avalonia.Controls/Notifications/WindowNotificationManager.cs

6
src/Avalonia.Controls/Notifications/WindowNotificationManager.cs

@ -146,7 +146,11 @@ namespace Avalonia.Controls.Notifications
{
var adornerLayer = host.FindDescendantOfType<VisualLayerManager>()?.AdornerLayer;
adornerLayer?.Children.Add(this);
if (adornerLayer is not null)
{
adornerLayer.Children.Add(this);
AdornerLayer.SetAdornedElement(this, adornerLayer);
}
}
private void UpdatePseudoClasses(NotificationPosition position)

Loading…
Cancel
Save