Skip to content

On iOS - ScrollView.ScrollToAsync Element, ScrollToPosition.MakeVisible shifts view to the right, instead of just scrolling vertically #28965

@DawidBester

Description

@DawidBester

Description

On iOS when using ScrollToAsync and ScrollToPosition.MakeVisible the ScrollView scrolls down and scrolls to the right so that the MakeVisible Element is placed on the right vertical edge of screen. This behavior is different than Android and Xamarin Forms

Steps to Reproduce

  1. Download and run reproduction project on iOS simulator or real device
  2. Tap red Scroll to Button66 button
  3. The ScrollView shifts to the right with Button66 in right bottom corner of screen

Before tap

Image

After tap

Image

With workaround in place

Image

Link to public reproduction project repository

https://github.com/DawidBester/ScrollToAsyncTest

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS18.4

Did you find any workaround?

Workaround as follows:

`

            if (DeviceInfo.Platform == DevicePlatform.iOS)
            {
               // workaround for MAUI makevisible BUG where scrolling scoresheet to the right when scroll performed
               await TestScrollView.ScrollToAsync(0, TestScrollView.ScrollY, false);
            }

`

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-scrollviewScrollViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions