Skip to content
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
@GalaxiaGuy

Description

@GalaxiaGuy

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

  1. Create a CollectionView with a GridItemsLayout with a Span 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).
  2. Make the CollectionView transparent and give the cells a non-transparent background color.
  3. Make the content behind theCollectionView 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

Simulator Screen Shot - iPod touch (7th generation) - 2021-03-05 at 12 34 18

Reproduction Link

https://github.com/GalaxiaGuy/xf-bugs/tree/bug/grid-spacing-gap

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions