unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.93k stars 725 forks source link

`ItemsStackPanel` does not stretch its children properly #2136

Open dr1rrb opened 4 years ago

dr1rrb commented 4 years ago

Current behavior

In WCT on WASM, the navigation items are top aligned: image

Expected behavior

They are centered as UWP, iOS and Android:

image

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

Undo the commit https://github.com/unoplatform/Uno.WindowsCommunityToolkit/commit/84db026ae6f545a786abdc528ba3e87cc583527c

Environment

Nuget Package: Uno.UI Package Version(s): 2.0 Affected platform(s):

Visual Studio: irrelevant Relevant plugins: none

Workaround

If your list is small, you can replace the ItemsStackPanel by a StackPanel (which disable the UI virtualization).

Youssef1313 commented 1 month ago

This could be already fixed as layouting on Wasm has changed a lot with time (the issue is dating 5 years back)

morning4coffe-dev commented 3 weeks ago

@MartinZikmund, @Youssef1313 I wasn't able to test this out yet as MUX seems to require me to signin, but I don't have a valid account to do so: image