This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Bug] [iOS] Collection view cells with 0 item spacing in a grid layout has gaps, apparently due to rounding #13943
Open
Description
Description
A CollectionView
using a GridItemsLayout
with a Span
that is not a whole factor of the collection view's width, and has a HorizontalItemSpacing
of 0
will still have a gap.
Steps to Reproduce
- Create a
CollectionView
with aGridItemsLayout
with aSpan
of 3,HoriztonalItemSpacing
of 0, and a width that is not a multiple of three (e.g full width of an iPod Touch 7th gen). - Make the
CollectionView
transparent and give the cells a non-transparent background color. - Make the content behind the
CollectionView
a different color to the cells.
Expected Behavior
None of the content behind the CollectionView
is visible.
Actual Behavior
There is gaps between the cells in which the background content is visible.
Basic Information
- Version with issue: 5.0.0.2012
Screenshots
Reproduction Link
https://github.com/GalaxiaGuy/xf-bugs/tree/bug/grid-spacing-gap