Open MaximeDion-Work opened 4 years ago
WASM need to be tested also for this issue (Happening with Uno.UI 3.1.6 and Uno.UI latest dev also)
I will investigate first if the bug is still happening with latest Uno
I will investigate first if the bug is still happening with latest Uno
Issue still happening on iOS/Android with latest Uno.UI (tested with 4.1.0-dev.511). WASM is fine.
@MaximeDion-Work here is a workaround for this issue: Use a margin on the content instead of a padding on the ScrollViewer.
<Grid Background="White">
<ScrollViewer>
<!-- If use on all platforms including WASM, you will need to add an additional border
around the content before the margin to avoid these related issues:
- https://github.com/unoplatform/uno/issues/6443
- https://github.com/unoplatform/uno/issues/7000 -->
<Border>
<Grid Background="Pink"
Height="2000"
Margin="50,50"/>
</Border>
</ScrollViewer>
</Grid>
Since for iOS/Android the NativeScrollViewerStyle uses a different template for the ScrollViewer in order to be able to use the NativeScrollContentPresenter, a possible solution would be to remove the Margin="{TemplateBinding Padding}" on the ScrollContentPresenter inside the default template and find a way to add the Padding at the NativeScrollContentPresenter level (UIScrollView for iOS and UnoTwoDScrollView for Android). This possible solution will need to be thoroughly tested and also these related issues should be taken care of at the same time since it seems related in some ways after syncing with @dr1rrb :
Current behavior
Scrollbar is affected by padding on iOS and Android, not the same behavior as UWP
Expected behavior
ScrollBar is not affected by padding on iOS and Android
How to reproduce it (as minimally and precisely as possible)
Workaround
None
Environment
Nuget Package:
Nuget Package Version(s):
Affected platform(s):
IDE:
Relevant plugins: