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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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) |
|
|
|
|