Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Scroll position issues with CollectionView when inside RefreshView #10640

Open
dsdilpreet opened this issue May 10, 2020 · 4 comments
Open

Comments

@dsdilpreet
Copy link

dsdilpreet commented May 10, 2020

Description

When RemainingItemsThreshold is reached for CollectionView which is wrapped inside RefreshView, scroll position resets automatically to top.

Steps to Reproduce

  1. Open the attached Github project in Visual Studio
  2. Run it on an iOS emulator or device
  3. Scroll items and scroll bar should automatically reset to top when items remaining threshold is reached for collection view

Expected Behavior

Scroll position should not reset to top

Actual Behavior

Scroll position resets and first item in list is visible when remaining item threshold is reached on iOS but it stays where it needs to on Android

Basic Information

  • Version with issue: 4.6.0.726
  • IDE: Visual Studio 2019 v16.5.4
  • Platform Target Frameworks:
    • iOS: 13.4 and 12.4

Screenshots

iPhone 11 iOS 13.4 2020-05-11 10-52-39.zip

Reproduction Link

https://github.com/dsdilpreet/Xamarin_Forms___RefreshView_Demo_ScrollBarIssue

@jsuarezruiz
Copy link
Contributor

Could it be related with #8306

@jsuarezruiz jsuarezruiz added e/4 🕓 4 and removed s/unverified New report that has yet to be verified labels Jun 1, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@Serena247Pro
Copy link

Any workaround for this issue? Facing the exactly same situation....

@Bmk-markuplab
Copy link

Bmk-markuplab commented Apr 29, 2021

Is there any fix other than disabling pull to refresh? I want to use CollectionView inside RefreshView. Pull to refresh is required.
The issue is not generated due to hitting the threshold. Even the threshold not hit, if the itemsouce contain more items than fit in full display the issue will appear

@Phenek
Copy link

Phenek commented Sep 20, 2021

Hey,
just don't use the same boolean for refreshView command and LoadMore command.
Changing the IsRefreshing boolean to false has the behavior to scroll to top on iOS.
It is an understandable behavior.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants