Open assassin316 opened 3 years ago
I think the centering worked for me when I set HorizontalAlignment=Center
directly on the GridView
, but that is a workaround, the bug is still relevant.
@MartinZikmund doing so would have the side effect of having the scroll bars not adjacent to the edge, rather ugly for a UI.
@MartinZikmund doing so would have the side effect of having the scroll bars not adjacent to the edge, rather ugly for a UI.
Agreed, that is the downside there...
Current behavior
The GridView control does not center in iOS and Android, works fine in UWP and Wasm.
ANDROID:
iOS:
UWP:
Wasm:
Expected behavior
When specified through templating, the GridView control should properly center itself horizontally and/or vertically.
How to reproduce it (as minimally and precisely as possible)
Create a new Uno sample app (using Uno.UI 3.0.17, but it may be reproducible in latest version)
Replace the following 3 files with those attached here:
files.zip
Workaround
None found so far.
Environment
Nuget Package:
Nuget Package Version(s):
Uno.UI 3.0.17
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
From the last time I test this functionality, centering vertically also had similar problems.