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

Signal layout request when CollectionView is in a layout #13612

Closed
wants to merge 1 commit into from

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Feb 1, 2021

Description of Change

#13370 added a watch for the IsVisible property change to signal a layout request to the UICollectionView control. Since it was 4.8 and using the old deferred layout resolution, there was no need to signal to Forms layouts that a layout update was necessary, as a re-layout due to the IsVisible change was already on the queue.

In 5.0 layout resolution is on-demand, so the UICollectionView's LayoutIfNeeded must be called to signal that a full layout is due. These changes add that call, and automated tests to verify that visibility changes work for a CollectionView inside of a Layout where the visibility is determined by a DataTrigger or IValueConverter.

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Automated UI test

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@hartez hartez added the blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. label Feb 1, 2021
@jsuarezruiz
Copy link
Contributor

The failing tests seem to be unrelated (Issue31333FocusEditorInListViewCell_apple_iphone_x-11_4_1, etc)

@hartez
Copy link
Contributor Author

hartez commented Feb 2, 2021

The failing tests seem to be unrelated (Issue31333FocusEditorInListViewCell_apple_iphone_x-11_4_1, etc)

The iOS 14 failures in the Bugzilla tests are unrelated, but the iOS 13 test failure is definitely real; looking into it now.

@hartez
Copy link
Contributor Author

hartez commented Feb 3, 2021

Closing this in favor of #13640.

@hartez hartez closed this Feb 3, 2021
@samhouts samhouts added i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often t/bug 🐛 labels Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/collectionview blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often p/iOS 🍎 t/bug 🐛
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [iOS] CollectionView does not display items if IsVisible modified via a binding/trigger
3 participants