-
Notifications
You must be signed in to change notification settings - Fork 2k
[iOS] CollectionView has excessive height if ObservableCollection source delayed in loading #34336
Copy link
Copy link
Closed
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Metadata
Metadata
Assignees
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
Inside a Grid row set to Auto, horizontal CollectionView with ObservableCollection source is too tall if there is a delay in loading the source. Android does not have this issue.
In the repro project a 3 second delay was added to population of the ObservableCollection.
Steps to Reproduce
1.) Run repro app and see tall CollectionView despite Grid set to Auto
2.) Remove Task.Delay line in DataService.cs and re-run, see correctly sized view
Expected:
To match Android behavior, iOS CollectionView is correctly sized when the ItemSource finishes populating, even if the screen has already appeared
Actual:
If CollectionView loads source after the screen has appeared, it does not correctly resize itself and takes up excessive vertical space on the screen, ignoring Grid settings.
Link to public reproduction project repository
https://github.com/veronica-aubry/CollectionViewHeight
Version with bug
10.0.40
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 26
Did you find any workaround?
Manually setting a MaximumHeight or HeightRequest on the CollectionView works, but we would like to be compliant with the WCAG guidelines for accommodating 200% text zoom and hardcoded heights are not good for this
Relevant log output