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] updated intrinsic content size for UICollectionView #5993

Merged
merged 3 commits into from
Jun 12, 2021

Conversation

jwoo-msft
Copy link
Member

@jwoo-msft jwoo-msft commented Jun 10, 2021

Related Issue

Image collection view returns zero intrinsic content size when the super view's width is zero.

Description

iOS AdaptiveCards width constraint is no longer required, and the intrinsic content size can be zero because of that. This PR returns the intrinsic content size as if all images are laid in a single row if the width is not yet determined. When the width is determined, a new intrinsic content size is calculated and ask for the layout engine to update the layout.

Sample Card

https://github.com/microsoft/AdaptiveCards/blob/main/samples/v1.0/Elements/ImageSet.json
https://github.com/microsoft/AdaptiveCards/blob/main/samples/v1.0/Scenarios/ImageGallery.json
https://github.com/microsoft/AdaptiveCards/blob/main/samples/v1.2/Scenarios/Agenda.json

How Verified

How you verified the fix, including one or all of the following:

  1. run existing sample cards
Microsoft Reviewers: Open in CodeFlow

@jwoo-msft jwoo-msft merged commit aa140bd into main Jun 12, 2021
@jwoo-msft jwoo-msft deleted the jwoo/ios-collection-view-update branch June 12, 2021 01:40
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
…5993)

* [iOS] updated intrinsic content size for UICollectionView

* [iOS] addressed the review comments
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
…5993)

* [iOS] updated intrinsic content size for UICollectionView

* [iOS] addressed the review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants