-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[net7.0] Make CollectionView on iOS measure to content size #15652
Conversation
* Make CollectionView on iOS measure to content size Fixes #9135 * Make tests work when device is in landscape * Auto-format source code * Removed extra local variable * Update src/Controls/src/Core/Handlers/Items/ItemsViewHandler.iOS.cs Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com> * Handle height/width invalidation checks independently --------- Co-authored-by: GitHub Actions Autoformatter <autoformat@example.com> Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
@hartez Hurray! Backport to .NET7 FTW! |
@@ -29,6 +29,9 @@ public abstract class ItemsViewController<TItemsView> : UICollectionViewControll | |||
bool _emptyViewDisplayed; | |||
bool _disposed; | |||
|
|||
Func<UICollectionViewCell> _getPrototype; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is never used.
/Users/builder/azdo/_work/1/s/src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs(32,30): error CS0169: The field 'ItemsViewController<TItemsView>._getPrototype' is never used [/Users/builder/azdo/_work/1/s/src/Controls/src/Core/Controls.Core.csproj::TargetFramework=net7.0-ios]
This is (currently the last) blocker for us. When will it be merged and when will be the next service release? |
@hartez this still good to merge in net7? |
Who knows 🤷🏽♂️ |
For what it's worth, I managed to back port this fix manually by inheriting from the existing handlers and adding changes from this pull request (some reflection usage was needed as well) but it works fine in 7.0.92. |
@Hooterr it's certainly possible to roll your own MAUI-version, but i for one would prefer to get a stable .net7 release. Especially after testing the latest .net preview and running into a whole bunch of regressions. |
Backport of #14951 to net7.0
/cc @hartez