-
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
CollectionView.EmptyView not respecting layout. #27229
Comments
maybe related CollectionView's EmptyView Does Not Fill Vertical Space ? |
This issue has been verified Visual Studio 17.13 Preview 2.1 (9.0.30). Can repro this issue on Android platform. And on 9.0.22 works fine. |
Is this a regression or a bug that was fixed? I guess the EmptyView is not taking the full height anymore. but instead sizing itself. |
It is a regression. It's not about taking full height but positioning itself inside CollectionView (VerticalOptions="Center"). It's a very simple example but in more complex sceanarios (like inside RefreshView) it doesn't render at all. That's how we've noticed it - empty views disappeared in all our applications after upgading to .30. So yes, It's a clear regression. |
So the screenshots are wrong @aksik ? Because on the screenshots above the only difference I manage to see is one taking full height and other does not . I don t see any view missing. |
Yes, I can confirm that this workaround works. However, as we have a lot of apps with a lot of empty views, changing all of them sounds ridiculous just tu update to latest version :/ |
no, screenshots are ok, it's just the most basic example prepared to highlight the bug. The second screenshot shows empty view on top while still having VerticalOptions="Center". Looks like it's not aware of the height of collectionview it's inside of. |
Just been hit with this on our bugtracker from beta testers after updating MAUI to the latest version in our .NET 9 branch. It's these kind of obvious, silly regressions with MAUI which is the root of a lot of the framework complaints. |
Description
the simplest collection view:
`
before update to 9.0.30 looked like (9.0.22):
after upgrading:
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.22 SR2.2
Affected platforms
Android
Affected platform versions
Tested on Android 14
Did you find any workaround?
no workaround found
Relevant log output
The text was updated successfully, but these errors were encountered: