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

[Bug] CollectionView scrolling doesn't seem fixed #13777

Closed
Tommigun1980 opened this issue Feb 16, 2021 · 11 comments
Closed

[Bug] CollectionView scrolling doesn't seem fixed #13777

Tommigun1980 opened this issue Feb 16, 2021 · 11 comments
Assignees
Labels
s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛
Projects

Comments

@Tommigun1980
Copy link

Tommigun1980 commented Feb 16, 2021

Hi.

I want to draw attention to #13719.

It was marked as fixed, but if I update to the latest nightly build (build 2017 as of this writing) or the latest stable build (5.0.0.193) the problem doesn't go away.

Repro steps are as mentioned in the ticket; to download the project linked in the ticket, and update it to the latest XF nightly (build 2017 as of this writing).

The regression in question completely breaks the CollectionView so any input would be really appreciated. The regression was introduced between XF 5.0.1.1876 and XF 5.0.1.2000-nightly.

Why was #13719 closed as fixed? If I take the repro project in there and update to a build that has the "fix" 68c1777, the bug still happens.
Was the fix tested?

Thank you.

@Tommigun1980 Tommigun1980 added s/unverified New report that has yet to be verified t/bug 🐛 labels Feb 16, 2021
@samhouts samhouts added this to New in Triage Feb 16, 2021
@Tommigun1980
Copy link
Author

@hartez Hi. Just pinging regarding this -- your fix, 68c1777, seems to be in the latest nightly builds but it doesn't seem to fix #13719.

@hartez
Copy link
Contributor

hartez commented Feb 18, 2021

@Tommigun1980 I just downloaded the project from #13231 and updated it to the latest stable (5.0.0.2012) and everything seemed fine - I can scroll to the bottom of the CollectionView (the last half of the last item is no longer cut off) and the scrolling doesn't jump around.

I also tried the latest nightly (5.0.0.2017) and that also seems to work. Is there some other issue I'm missing?

@hartez hartez moved this from New to Needs Info in Triage Feb 18, 2021
@hartez hartez added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Feb 18, 2021
@Tommigun1980
Copy link
Author

@Tommigun1980 I just downloaded the project from #13231 and updated it to the latest stable (5.0.0.2012) and everything seemed fine - I can scroll to the bottom of the CollectionView (the last half of the last item is no longer cut off) and the scrolling doesn't jump around.

I also tried the latest nightly (5.0.0.2017) and that also seems to work. Is there some other issue I'm missing?

Hi @hartez and thanks for the reply!

If I take the repro project in the aforementioned ticket and update it to either latest nightly or latest stable, it looks exactly like in https://drive.google.com/file/d/1CcDqvFsl8XihcqU-YA57eWQIAjF4PxPs/view?usp=sharing.
The fix didn’t do anything for me when running the repro project (or my main project).

I've been testing with the iPhone 12 simulator and latest Xcode and latest iOS version in the simulator.

I saw the fix included some constant threshold that was very small. Maybe that constant is at fault here here preventing it from happening on all devices?

All I can say is that if I take the repro project and update Xamarin.Forms the issue happens even after the fix.

Thank you.

@Tommigun1980
Copy link
Author

Tommigun1980 commented Feb 20, 2021

@hartez To triple check I updated both projects (ie the repro project linked in ticket #13719 and my main project) to the latest stable (5.0.0.2012) and to the latest nightly (5.0.0.2017), and the issues are still happening, i.e. can't scroll to bottom and the items jump around constantly (video at https://drive.google.com/file/d/1CcDqvFsl8XihcqU-YA57eWQIAjF4PxPs/view?usp=sharing).

Xcode 12.4, iPhone 12 simulator (iOS 14.4), VS For Mac 8.9 Preview build 1593, XF 5.0.0.2017 + XF 5.0.0.2012 (ie latest everything).

The fix does not do anything for me. The fix 68c1777 added the constant

const double ConstraintSizeTolerance = 0.00001;

Maybe it doesn't work on all devices? Or maybe there are multiple issues?

I am literally unable to update right now as the CollectionView broke just prior to XF5 SR3, and the fix does not work for me at all.

Thank you.

@Tommigun1980
Copy link
Author

Tommigun1980 commented Feb 20, 2021

This is probably not related, but I couldn't help but notice that

public override bool ShouldInvalidateLayoutForBoundsChange(CGRect newBounds)

changes the state, by calling

UpdateConstraints(CollectionView.AdjustedContentInset.InsetRect(newBounds).Size);

Is it really intended that a method that is used to ask for whether an update should happen actually changes the state? Shouldn't the update happen only after said method returns true? I can see a ton of things going wrong if a method that is called to check whether something needs an update actually mutates the state by itself.

That paired with a magical constant,

const double ConstraintSizeTolerance = 0.00001;

looks to me like code that will break (which it evidently does for me as the fix literally does nothing for me, and if I update the repro project to the latest XF version the issue still happens).

@Tommigun1980
Copy link
Author

Hi. Could this be fixed as my app is completely broken right now.
Thank you.

@Redth Redth removed the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Mar 4, 2021
@PureWeen PureWeen moved this from Needs Info to New in Triage Mar 5, 2021
@Tommigun1980
Copy link
Author

Hi. This regression is blocking me atm and the fix didn’t work. Any chance of fixing it?

Thank you.

@hartez
Copy link
Contributor

hartez commented Mar 15, 2021

@hartez To triple check I updated both projects (ie the repro project linked in ticket #13719 and my main project) to the latest stable (5.0.0.2012) and to the latest nightly (5.0.0.2017), and the issues are still happening, i.e. can't scroll to bottom and the items jump around constantly (video at https://drive.google.com/file/d/1CcDqvFsl8XihcqU-YA57eWQIAjF4PxPs/view?usp=sharing).

@Tommigun1980

I've downloaded the project from 13231 and updated it to 5.0.0.2012. Just today I've run it (in the simulator) on

iPhone 12 Pro Max iOS 14.4
iPhone 12 Pro iOS 14.4
iPhone 12 mini iOS 14.4
iPhone 12 iOS 14.4
iPhone X iOS 12.4

using application builds from both Windows and macOS. (I also ran it on several other devices and sims when testing for SR3).

On all of these, I can scroll all the way to the bottom (the last item is not cut off) and the scroll doesn't jump around.

Is there some other detail we're missing here? Is your version of the repro project modified in some way from the one linked in #13231? Are you seeing these issues at all when running on a physical device?

Xcode 12.4, iPhone 12 simulator (iOS 14.4), VS For Mac 8.9 Preview build 1593, XF 5.0.0.2017 + XF 5.0.0.2012 (ie latest everything).

I'm using VS for Mac 8.9.1 (build 34) (i.e., latest stable). With VS for Windows I'm using 16.9.1 (latest stable).

XF 5.0.0.2017 + XF 5.0.0.2012

You're not mixing the latest stable and the latest nightly, are you? Running one on the cross-platform project and one on the iOS project?

The nightlies are built off of the main branch; depending on when the nightly was built, it won't necessarily contain all the fixes from a release branch (e.g, 5.0.0).

@rachelkang rachelkang added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Mar 15, 2021
@rachelkang rachelkang moved this from New to Needs Info in Triage Mar 15, 2021
@Tommigun1980
Copy link
Author

@hartez To triple check I updated both projects (ie the repro project linked in ticket #13719 and my main project) to the latest stable (5.0.0.2012) and to the latest nightly (5.0.0.2017), and the issues are still happening, i.e. can't scroll to bottom and the items jump around constantly (video at https://drive.google.com/file/d/1CcDqvFsl8XihcqU-YA57eWQIAjF4PxPs/view?usp=sharing).

@Tommigun1980

I've downloaded the project from 13231 and updated it to 5.0.0.2012. Just today I've run it (in the simulator) on

iPhone 12 Pro Max iOS 14.4
iPhone 12 Pro iOS 14.4
iPhone 12 mini iOS 14.4
iPhone 12 iOS 14.4
iPhone X iOS 12.4

using application builds from both Windows and macOS. (I also ran it on several other devices and sims when testing for SR3).

On all of these, I can scroll all the way to the bottom (the last item is not cut off) and the scroll doesn't jump around.

Is there some other detail we're missing here? Is your version of the repro project modified in some way from the one linked in #13231? Are you seeing these issues at all when running on a physical device?

Xcode 12.4, iPhone 12 simulator (iOS 14.4), VS For Mac 8.9 Preview build 1593, XF 5.0.0.2017 + XF 5.0.0.2012 (ie latest everything).

I'm using VS for Mac 8.9.1 (build 34) (i.e., latest stable). With VS for Windows I'm using 16.9.1 (latest stable).

XF 5.0.0.2017 + XF 5.0.0.2012

You're not mixing the latest stable and the latest nightly, are you? Running one on the cross-platform project and one on the iOS project?

The nightlies are built off of the main branch; depending on when the nightly was built, it won't necessarily contain all the fixes from a release branch (e.g, 5.0.0).

When I run the project it's just broken and looks like this: https://drive.google.com/file/d/1MwB1hc7IIj0_BNXNh4cMWoa7kJNgOdg2/view?usp=sharing

That is from the iPhone 12 simulator. It just doesn't work. It's not modified in any way, it's just the repro project updated to latest XF version.

@Redth Redth removed s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Mar 22, 2021
@hartez
Copy link
Contributor

hartez commented Mar 23, 2021

@Tommigun1980 Can you upload/post a new version of your repro project that's updated to the latest XF version? That way I can compare to the version I have here - maybe I'm missing a detail when updating the project.

@Redth Redth moved this from Needs Info to New in Triage Mar 30, 2021
@rachelkang rachelkang added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Apr 26, 2021
@rachelkang rachelkang moved this from New to Needs Info in Triage Apr 26, 2021
@Tommigun1980
Copy link
Author

@hartez I deleted everything and reinstalled the latest version and the issue did go away. So the fix does seem to work for me now. I have not encountered this update problem before.

Thank you for fixing it! I will close this ticket as I can no longer get it to happen.

Triage automation moved this from Needs Info to Closed May 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛
Projects
Triage
  
Closed
Development

No branches or pull requests

4 participants