This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] CollectionView (iOS) using horizontal grid does not display last column of uneven item count #6077
Labels
Comments
I can confirm this issue as well. |
kingces95
added
the
s/needs-info ❓
A question has been asked that requires an answer before work can continue on this issue.
label
May 3, 2019
@kingces95, seeing that last column is the expected behavior, but that photo looks like an Android device. I only noticed this bug on iOS. When I test on Android I also see the last column, but in the iOS simulator that last column does not display. |
Figured I may as well mention this again as well. The last column will show in iOS if you set |
samhouts
removed
the
s/needs-info ❓
A question has been asked that requires an answer before work can continue on this issue.
label
May 3, 2019
samhouts
added
e/5 🕔
5
and removed
s/unverified
New report that has yet to be verified
labels
May 8, 2019
hartez
added a commit
that referenced
this issue
May 21, 2019
…fixes #6077 Fix content inset behaviors when dealing with safe area on newer iOS versions
hartez
added a commit
that referenced
this issue
May 21, 2019
…fixes #6077 Fix content inset behaviors when dealing with safe area on newer iOS versions
4 tasks
hartez
added a commit
that referenced
this issue
Jun 4, 2019
…fixes #6077 Fix content inset behaviors when dealing with safe area on newer iOS versions
hartez
added a commit
that referenced
this issue
Jun 17, 2019
…fixes #6077 Fix content inset behaviors when dealing with safe area on newer iOS versions
Chaning to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
If you set CollectionView to a horizontal grid layout with multiple rows (span) and define a width for your items the last column gets dropped if it's not a full column. So if the last column doesn't have an item for each row it will not be displayed. If you set the CollectionView orientation to vertical this is not an issue, the last uneven row will be displayed.
I found that setting ItemSizingStrategy to MeasureFirstItem fixes this issue and the last column of uneven items will then show. Also, if you do not set a width for your items then the last uneven row will show.
I tested this in iOS and Android in Xamarin.Forms 4.0.0.346134-pre9 and only see this bug in iOS.
Steps to Reproduce
Expected Behavior
The last column of items with a set width in a CollectionView using a horizontal grid layout should display regardless of the number of items in that column.
Actual Behavior
The last column of items with a set width in a CollectionView using a horizontal grid layout does not display if the items to not full all the rows.
Basic Information
Screenshots
Reproduction Link
CollectionViewHorizontalGridBug.zip
The text was updated successfully, but these errors were encountered: