You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Popup shows nothing in Avalonia version < 11.2.0 (for example, 11.1.5).
It shows a 300x200 rectangle in Avalonia version >= 11.2.0. It seems to always at the top left of the screen regardless of PlacementTarget.
publicpartialclassMainWindow:Window{publicMainWindow(){InitializeComponent();varcurrentDotnetVersion=Environment.Version;varcurrentAvaloniaVersion=typeof(Button).Assembly.GetName().Version;RuntimeInfo.Text=$"Running on .NET {currentDotnetVersion} and Avalonia {currentAvaloniaVersion}";}privatevoidTogglePopup(objectsender,RoutedEventArgse){MyPopup.IsOpen^=true;varpanel=(Panel)MyPopup.Child!;PopupIsOpenStatus.Text=$"Popup is currently {(MyPopup.IsOpen?"open":"closed")}\nPopup.PlacementTarget: {MyPopup.PlacementTarget}\n"+$"\nHeight: {panel.Height}\nWidth: {panel.Width}"+$"\nDesiredSize: {panel.DesiredSize}\nBounds: {panel.Bounds}";}}
dotnet run -f net8.0 -p:AvaloniaVersion=11.2.0
dotnet run -f net8.0 -p:AvaloniaVersion=11.1.5
Expected behavior
I have not tested this in other OS but the behavior should match.
Describe the bug
This
Popup
shows nothing in Avalonia version < 11.2.0 (for example, 11.1.5).It shows a 300x200 rectangle in Avalonia version >= 11.2.0. It seems to always at the top left of the screen regardless of
PlacementTarget
.To Reproduce
https://github.com/Genteure/avalonia-linux-empty-popup
Or if the repository is deleted in the future:
Repro steps
Run
dotnet new avalonia.app
(Avalonia.Templates
version 11.2.1.1 but this shouldn't matter too much)Expected behavior
I have not tested this in other OS but the behavior should match.
Avalonia version
11.2.0
OS
Linux
Additional context
amwx/FluentAvalonia#634
300, 200
seems to be coming fromAvalonia.X11/X11Window.cs
.PopupRoot
got two commits in 11.2.0: 1cfa82 and b27228.The text was updated successfully, but these errors were encountered: