You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
If a horizontal ScrollView with a StackLayout or Grid inside it is not visible when the Page is first visible, when the ScrollView is visible, the contents are scrolled to the right rather than the expected behaviour of being scrolled to the left.
This only occurs on iOS. On Android the behaviour is as expected.
Steps to Reproduce
Create an RTL-aware Xamarin.Forms iOS app
Add a horizontal ScrollView with a StackLayout in it, and with enough content to make the ScrollView need to scroll, and with logic to show the ScrollView after the page is displayed.
Build and run the app on an iPhone which has its culture set to a RTL culture.
Expected Behavior
The ScrollView appears scrolled to the left, and needs to be scrolled to the right to see content on the left.
Actual Behavior
The ScrollView appears scrolled to the right, and needs to be scrolled to the left to see content on the right.
Basic Information
Version with issue: Xamarin.Forms 5.0.0.1931
Last known good version: Not known.
Platform Target Frameworks:
iOS: 8.0
NuGet Packages:
Affected Devices: iPhone SE (2nd Generation) simulator and physical devices.
Thanks for the attached sample.
If the StackLayout is visible, apply the correct behavior. The problem occurs when the visibility is changed.
Correct -if the StackLayout (actually, the ScrollView) is already visible the behaviour is correct. The problem occurs if the ScrollView is initially not visible and visibility is subsequently changed to make it visible.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
If a horizontal ScrollView with a StackLayout or Grid inside it is not visible when the Page is first visible, when the ScrollView is visible, the contents are scrolled to the right rather than the expected behaviour of being scrolled to the left.
This only occurs on iOS. On Android the behaviour is as expected.
Steps to Reproduce
Expected Behavior
The ScrollView appears scrolled to the left, and needs to be scrolled to the right to see content on the left.
Actual Behavior
The ScrollView appears scrolled to the right, and needs to be scrolled to the left to see content on the right.
Basic Information
Environment
Show/Hide Visual Studio info
Screenshots
The first row of labels is always visible. It is scrolled correctly.
The second row of labels in the screenshot below was initially hidden. When shown, the labels are scrolled to the right.
Reproduction Link
RtlStackLayoutDemo.zip
Workaround
No workaround found.
The text was updated successfully, but these errors were encountered: