When the rows of a CollectionView have different Heights, all rows with the same Height as the first one gets displayed wrong.
This should be somewhat simple to solve, as if the CollectionView is scrolled, all views get sized correctly.
Ok, this issue is a little weird, so I'm going to describe it better in the Actual Behaviour.
The size of all rows gets rendered correctly.
Going to the Second Page you can see that if there's a first row with a unique Height, the issue doesn't happen, as it only occurs in rows with the same size as the first one.
Observation: Changing the size of the third row in the MainPage also changes the sizes of all the 12pt sized rows after it.
MainPage with issue:
MainPage after scroll:
SecondPage without issue (first row is unique):
@luccasclezar When I click the Add button, the app crashes. Tested on XS with 4.4.0.1195-nightly. Can you confirm? Also, I didn't see your issue (without adding items through the Add button).
@adrianknight89 I tested with 4.4.0.1195-nightly and it's still happening. The Add button doesn't crash the app for me, but the issue is not related to it. When you open the app it should display as the first screenshot I attached (with all 12 sized rows bigger than they should be).
The add button is meant for another issue I was testing that renders the CollectionView on the second tab invisible when changed before displaying the tab (sorry for keeping the button there).
I tested the repro project only on an iPhone 11 Pro Max simulator but I saw the issue for the first time on a physical iPhone 8 Plus.
To confirm, I tested out on an iPhone 8 Plus running iOS 13.1. As you can see, the issue still occurs.
@luccasclezar I think this may only be an iOS 13 issue. I tested this on iOS 12.4.1 with an XR device. No issues there.
@adrianknight89 I can鈥檛 test right now on an iOS 12 device, so I can鈥檛 say for sure, but yeah, probably an iOS 13 issue.
I don鈥檛 know about the Add button crash though, it doesn鈥檛 happen on iOS 13. Maybe it鈥檚 related to #7700 but instead of failing silently and not rendering the CollectionView, it crashes on iOS 12.
@adrianknight89 I tested on a iOS 12 simulator now and I can confirm it, there's no issue on the rows' sizes and the app crashes when Add is pressed.
I saw the crash when testing this one
https://github.com/xamarin/Xamarin.Forms/issues/7700
So these might all get fixed together
Has this been fixed? we cant move to collectionview because of this @samhouts
@AntonIOIOIO Unfortunately, I still see this issue in 4.5.0.
Putting my voice here as well. I tried to modernize and move to CollectionView instead of ListView, but this one is a big blocker.
issue still exists in the latest version of forms @samhouts
Still happening in latest Forms. Some rows start wrong height and then correct themselves as you scroll the list.
I'm having the same problem, using iOS 14.
Most helpful comment
issue still exists in the latest version of forms @samhouts