unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.69k stars 700 forks source link

[Android][WCT - WrapPanel] Fluent buttons change size upon click inside the WrapPanel #16595

Open agneszitte opened 2 months ago

agneszitte commented 2 months ago

Current behavior

Fluent buttons change size upon click inside the Windows Community Toolkit WrapPanel but only for Android.

https://github.com/unoplatform/uno/assets/16295702/de2d5696-5906-4c52-8f73-db09b0a7ec4b

Expected behavior

No size change for the Fluent buttons like for Windows and other platforms.

https://github.com/unoplatform/uno/assets/16295702/866731f1-e44a-4641-952e-77af4616c1f8

How to reproduce it (as minimally and precisely as possible)

Click on the fluent buttons inside the WCT WrapPanel and notice the issue.

[!NOTE] For WCT (v. 7.1.2): xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls" For WCT (v. 8.1.240328-rc): xmlns:controls="using:CommunityToolkit.WinUI.Controls"


<Grid>
agneszitte commented 2 months ago

cc @MartinZikmund, @Youssef1313 in case you have an idea on the root cause

MartinZikmund commented 2 months ago

Seems like some kind of layouting issue, maybe it is trying to do layout while layouting is in progress?

jeromelaban commented 2 months ago

@Youssef1313 could you try it with your lifecycle PR update?

Youssef1313 commented 2 months ago

It probably shouldn't have an impact as the enhanced lifecycle is only done for Skia/Wasm