Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] CollectionView with GridItemsLayout and footer, renders the cell in the center if is just one cell #23795

Closed
unombun opened this issue Jul 24, 2024 · 2 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 t/bug Something isn't working

Comments

@unombun
Copy link

unombun commented Jul 24, 2024

Description

On iOS CollectionView with GridItemsLayout behaves weird. You need to have just one cell in the collection view and the footer of the collection view to be set up. Then the cell is rendered centered. If you do not set the footer, the cell is properly rendered to the left. If you have more cells and the footer is set up, again everything is fine.

Steps to Reproduce

  1. Create a page with collectionView
  2. Set the ItemsLayout to be a GridItemsLayout with span 2 and orientation Vertical
  3. Set a footer for the collection view
  4. Bind collection view to a list of just 1 element.
  5. The cell is centered

Expected result: the cell should be rendered to the left side

If footer is not set up, the cell is in the left side
If there are 3 elements in the source of collectionView, even with a footer set up, everything is rendered properly.

Link to public reproduction project repository

https://github.com/flesarradu/CollectionViewFooterBugReproSample

Version with bug

8.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

@unombun unombun added the t/bug Something isn't working label Jul 24, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@unombun
Copy link
Author

unombun commented Jul 24, 2024

Duplicate of #21728

@unombun unombun closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2024
@samhouts samhouts added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Aug 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants