Open Marc-Antoine-Soucy opened 1 year ago
(as info @jeromelaban)
cc @dr1rrb
@Marc-Antoine-Soucy So it seems linked to the Flyout
(used by the "modal" nav) and the usage you have of them.
Flyout
seems to have a hard-code MaxWidth
that you have disabled (don't even known how you did it, I'm unable to repro in a sample app). While on Windows it somehow works, with Uno the hard-coded width still impacts the ItemsRepeater
(and most probably the computed "effective view-port").
As it's not a standard way to use Flyout
and there is a simple workaround, we won't fix this for now.
@Marc-Antoine-Soucy is this a major blocker for any of the pages with the ui refresh work?
Had the same issue for the Profile Detail page, used the workaround from @Marc-Antoine-Soucy
I made another sample with the newest nugets but this time, it's happening with AutoLayout. On wasm: On windows:
<ScrollViewer utu:AutoLayout.PrimaryAlignment="Stretch"
Grid.Row="1">
<utu:AutoLayout Orientation="Horizontal">
<TextBlock Text="Left"
utu:AutoLayout.PrimaryAlignment="Stretch" />
<TextBlock Text="Right" />
</utu:AutoLayout>
</ScrollViewer>
@dr1rrb The new sample, I think, clearly shows it's not due to a hardcoded width on other platform, but rather that the ScrollViewer for some reason acts horizontally like a StackPanel/ or as if it was a scrollable Scrollviewer, giving the minimum space, rather than giving all the space it can horizontally. This only happens with a few controls, apparently, with the Items repeater being one, and the autolayout being another. UnoExtensionsNavigation.zip
I'm not sure if it would be worth creating another issue for this since I think it's the same issue.
Also, worth noting this new sample is just the default uno app with a modal navigation to page 2 that contains the code above.
Current behavior
When navigating to or from a modal page, if a ScrollViewer is present around an ItemRepeater without disabling horizontal scrolling, the items within the ItemRepeater will occupy the least amount of horizontal space possible.
Expected behavior
Just like on WinUI, the ItemRepeater should take all available space when it's set to stretch.
How to reproduce it (as minimally and precisely as possible)
In the MainPage:
In the second page:
unoExtensionBasicApp.zip
Environment
Nuget Package:
Package Version(s):
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?
I was at 15 min on building IOS, so I stopped, but I know the bug was happening on earlier version on IOS.
having HorizontalScrollMode="Disabled" in the scrollviewer is a good workaround for this issue.