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

In iOS, CollectionView row does not shift down if row above it resizes #22082

Closed
grantlogsdon1 opened this issue Apr 26, 2024 · 3 comments
Closed
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@grantlogsdon1
Copy link

grantlogsdon1 commented Apr 26, 2024

Description

In iOS, when the size of a row in a CollectionView increases, it appears behind the rows below it. WinUI/Android work as expected where the rows shift down as to not overlap the resized row.

More Context:
The Data Template for my CollectionView contains a Grid with one row defined as ‘*’. The row contains multiple columns with controls. One of the controls is a custom control that that functions like a ComboBox (since there is no built in MAUI control for this). This ComboBox is what leads to the requirement that the row have a dynamic height. It consists of a Entry and a CollectionView stacked on top of each other. The user is able to type into an entry field and CollectionView appears below the entry with filtered results based on the users input.
When the ComboBox's CollectionView appears, the whole row grows to accommodate the new height (I have not found a reliable way to make it just overlap on top of the rows below it).

In WinUI:
https://github.com/dotnet/maui/assets/88509644/7c7d87fa-3b74-4105-b93a-fbb2b5901419

In iOS
https://github.com/dotnet/maui/assets/88509644/a6c87f4c-eac8-44f3-824c-7e7ac8347d24

Steps to Reproduce

  1. Create a CollectionView. Bind to a list with multiple items, so that CollectionView will have multiple rows.
  2. Add a Grid into the CollectionView data template with one row defined as '*' or 'Auto' (Both have the same result)
  3. In the Grid, add a control that can be resized by an action performed in the app. I have a CollectionView that will get populated with labels
  4. Perform action to cause collection view row to grow

Link to public reproduction project repository

https://github.com/grantlogsdon1/CollectionViewResizeBugRepro

Version with bug

8.0.7 SR2

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

iOS 17.2.8004
iOS 17.4

Did you find any workaround?

No

Relevant log output

No response

@grantlogsdon1 grantlogsdon1 added the t/bug Something isn't working label Apr 26, 2024
@Eilon Eilon added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Apr 26, 2024
@PureWeen PureWeen added platform/iOS 🍎 s/needs-repro Attach a solution or code which reproduces the issue labels Apr 26, 2024
@grantlogsdon1
Copy link
Author

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Apr 30, 2024
@QianaJiao
Copy link
Collaborator

Can repro this issue at iOS platform on the latest 17.10 Preview 6 (8.0.21).

@QianaJiao QianaJiao added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 6, 2024
@drasticactions
Copy link
Contributor

Duplicate of #13451

@drasticactions drasticactions marked this as a duplicate of #13451 May 9, 2024
@drasticactions drasticactions closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants