Skip to content

[Android] ScrollView scroll position changes unexpectedly when Orientation is set to Horizontal and FlowDirection is RTL at runtime #30081

@NafeelaNazhir

Description

@NafeelaNazhir

Description

When using a ScrollView in .NET MAUI with Orientation=Horizontal and FlowDirection="RightToLeft", changing the orientation or updating the content at runtime causes the scroll position changing alternatively on Android.

Note: This issue also arises when Orientation is set to Both.

Screen.Recording.2025-06-20.at.12.10.36.PM.mov

Steps to Reproduce

  1. Run the attached Sample ScrollViewOrientation 2.zip
  2. Set FlowDirection=RightToLeft and select Orientation as Horizontal
  3. Change the orientation back and forth (e.g., from Vertical to Horizontal and vice versa) multiple times at runtime.
  4. Observe the scroll position after each change.

Actual Behavior:
On Android, when FlowDirection is set to RTL and the orientation is changed to Horizontal at runtime, the scroll position changes or alternates after each change.

Link to public reproduction project repository

No response

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions