maui icon indicating copy to clipboard operation
maui copied to clipboard

[regression/8.0.3] Scrollview scrolling does not work in MAC and iOS platforms

Open jeya-kasipandi opened this issue 2 years ago • 2 comments

Description

Scrollview scrolling not works properly in.NET 8 and it works correctly in .NET 7. Horizontal stack layout added as the content of scroll view when adding items to the horizontal stack layout, not able to scroll to the newly added last item and also scrolling to the first item there is some space occur. This issue is reproduced on MAC and iOS platforms.

Steps to Reproduce

  1. Run the sample from the below link https://github.com/jeya-kasipandi/ScrollviewIssue/tree/main/scrollviewissue
  2. Click the button to add a child inside the horizontal stack layout.
  3. Now scroll the scroll view to the newly added last item.
  4. See the output Not able to scroll to the end of the newly added item. If scroll to the first item, the scroll view is shown with some space. Attached video for your reference. MAC https://github.com/dotnet/maui/assets/92785406/bdaeb1b2-c50d-4ed8-a80c-882ce9f2a3fa iOS https://github.com/dotnet/maui/assets/92785406/b1ca7e1e-d8ae-409b-9b19-828e8ba561fa

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.101

Affected platforms

iOS, macOS

Affected platform versions

iOS 17.0

Did you find any workaround?

No response

Relevant log output

No response

jeya-kasipandi avatar Nov 24 '23 10:11 jeya-kasipandi

Please give high priority to this issue

jeya-kasipandi avatar Nov 24 '23 10:11 jeya-kasipandi

This issue occurs on Android and windows also . please refer to the reproducing code below <StackLayout > <ScrollView Orientation="Vertical"> <StackLayout> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> <Entry HeightRequest="200" BackgroundColor="Red"/> </StackLayout> </ScrollView> </StackLayout>

Ahamed-Ali avatar Jan 11 '24 11:01 Ahamed-Ali

Verified this issue with Visual Studio for Mac 17.6.9 build 415 (maui version 8.0.6), not repro on .NET 8 iOS platform with sample project. Notrepro

jaosnz-rep avatar Mar 07 '24 09:03 jaosnz-rep