Closed
Description
Describe the bug
- Add
<PropertyGroup><AvaloniaVersion>11.2.0</AvaloniaVersion></PropertyGroup>
toFAControlsGallery.Desktop.csproj
dotnet run --project samples/FAControlsGallery.Desktop/FAControlsGallery.Desktop.csproj
- Open the page for
TeachingTip
and click button.
Desktop/Platform (please complete the following information):
- OS: Ubuntu 24.04 (GNOME, Wayland)
- FluentAvalonia Version: latest (or 2.2.0), commit 3ef356a
- Avalonia Version: 11.2.0 and up
Additional context
300, 200
seems to be coming from Avalonia.X11/X11Window.cs
. This bug seems to be caused by commit 1cfa82ca
in Avalonia first released in 11.2.0-beta1
.
Old incorrect bug description for archival purpose
Describe the bug
- Change
TargetFramework
ofFAControlsGallery.Desktop.csproj
fromnet8.0
tonet9.0
dotnet run --project samples/FAControlsGallery.Desktop/FAControlsGallery.Desktop.csproj
- Open the page for
TeachingTip
and click button.
Desktop/Platform (please complete the following information):
- OS: Ubuntu 24.04 (GNOME, Wayland)
- FluentAvalonia Version: latest (or 2.2.0), commit 3ef356a
- Avalonia Version: tested on 11.1.0 and 11.2.2
Additional context
Only reproduced on dotnet 9. It works as intended on dotnet 8.
- On dotnet 8:
_lightDismissIndicatorPopup.Child.Bounds
={0, 0, 0, 0}
- On dotnet 9:
_lightDismissIndicatorPopup.Child.Bounds
={0, 0, 300, 200}
- On both:
Width
andHeight
are alwaysNaN
,DesiredSize
is always{0, 0}
300, 200
seems to be coming from Avalonia.X11/X11Window.cs
but I'm not sure. Also I still have no idea why it behaves differently on dotnet 8 and 9.