Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons cropped (after update from 11.2.2 to 11.2.3) #17809

Open
Limula-PMA opened this issue Dec 20, 2024 · 2 comments
Open

Icons cropped (after update from 11.2.2 to 11.2.3) #17809

Limula-PMA opened this issue Dec 20, 2024 · 2 comments

Comments

@Limula-PMA
Copy link

Describe the bug

Soon after updating to the latest Avalonia release, I noticed all icons were cropped on their right side, when included in various container (NavigationViewItem, SettingsExpander, MenuFlyoutItem, ...)

I'm using FluentAvalonia as well, which could also be the cause.
I've included a small sample project (with a navigation view). You can simply switch between Avalonia 11.2.2 and 11.2.3 to see the difference.

Avalonia 11.2.2:
before

Avalonia 11.2.3:
after

Other examples:
after_2
test

To Reproduce

Simply create any of the aforementioned containers (NavigationViewItem, SettingsExpander, MenuFlyoutItem) and include an icon in it. Switching from 11.2.2 to 11.2.3 will (if the icon is wide enough) crop it.

Expected behavior

I would expect the icon to stay fully visible.

Avalonia version

11.2.3

OS

Windows

Additional context

Here's a small sample project:
TestApp.zip

@robloo
Copy link
Contributor

robloo commented Dec 21, 2024

Can confirm -- this is a serious issue that unfortunately makes the current version of Avalonia unusable.

I don't think it's an issue with FluentAvalonia. The FontIcon rendering and custom FluentAvalonia font haven't changed in some time. The changes to the font metric calculations in Avalonia were made before 11.2.3 as well so again, likely not the FluentAvalonia font.

@robloo
Copy link
Contributor

robloo commented Dec 21, 2024

Also, this is likely a duplicate of #17795

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants