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

[Bug] [iOS] CollectionView LinearItemsLayout with horizontal orientation and non-zero item spacing does not show all items #15022

Open
GalaxiaGuy opened this issue Jan 4, 2022 · 1 comment
Labels
a/collectionview s/unverified New report that has yet to be verified t/bug 🐛
Projects

Comments

@GalaxiaGuy
Copy link
Contributor

GalaxiaGuy commented Jan 4, 2022

Description

Using a layout like the following <LinearItemsLayout Orientation="Horizontal" ItemSpacing="16" /> results in some items being missing from the end of the collectionview.

Vertical lists seem to work fine and horizontal lists with no spacing work fine. Android works fine.

Steps to Reproduce

  1. Create a CollectionView
  2. Set ItemsLayout to LinearItemsLayout with a horizontal orientation and a positive ItemSpacing
  3. Try to scroll to the end

Expected Behavior

All items can be scrolled to

Actual Behavior

Only some items can be scrolled to.

Basic Information

  • Version with issue: 5.0.0.2291

Screenshots

All three collection views are bound to the same list, and scrolled as far as possible (last element is "O").
Simulator Screen Shot - iPod touch (7th generation) - 2022-01-04 at 15 41 43

Reproduction Link

https://github.com/GalaxiaGuy/xf-bugs/tree/bug/collectionview-horizontal-list

Workaround

Horizontal GridItemsLayout with a span of 1 works.

@GalaxiaGuy GalaxiaGuy added s/unverified New report that has yet to be verified t/bug 🐛 labels Jan 4, 2022
@jsuarezruiz jsuarezruiz added this to New in Triage via automation Jan 10, 2022
@VNGames
Copy link

VNGames commented Sep 6, 2023

Also if you rebuild your UI to include spacing inside of Item DataTemplate and try to set ItemSpacing = 0 or not setting it at all it messes up main thread or something to the point that any code related to UI is completely ignored and page becomes unresponsive. Setting it to 0.01 works. as a workaround

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/collectionview s/unverified New report that has yet to be verified t/bug 🐛
Projects
Triage
  
New
Development

No branches or pull requests

3 participants