Skip to content

TeachingTip shows an addional white rectangle popup on Linux #634

Closed
@Genteure

Description

@Genteure

Describe the bug

  1. Add <PropertyGroup><AvaloniaVersion>11.2.0</AvaloniaVersion></PropertyGroup> to FAControlsGallery.Desktop.csproj
  2. dotnet run --project samples/FAControlsGallery.Desktop/FAControlsGallery.Desktop.csproj
  3. Open the page for TeachingTip and click button.

Screenshots
image

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

image

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

  1. Change TargetFramework of FAControlsGallery.Desktop.csproj from net8.0 to net9.0
  2. dotnet run --project samples/FAControlsGallery.Desktop/FAControlsGallery.Desktop.csproj
  3. Open the page for TeachingTip and click button.

Screenshots
image

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.

image

  • On dotnet 8: _lightDismissIndicatorPopup.Child.Bounds = {0, 0, 0, 0}
  • On dotnet 9: _lightDismissIndicatorPopup.Child.Bounds = {0, 0, 300, 200}
  • On both: Width and Height are always NaN, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions