-
Notifications
You must be signed in to change notification settings - Fork 1.9k
RefreshView makes CollectionView use all available vertical space despite VerticalOptions=Center on CollectionView #14479
Copy link
Copy link
Open
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewarea-controls-refreshviewRefreshViewRefreshViewarea-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterplatform/androidplatform/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
Description
When CollectionView has VerticalOptions=Center set, it takes up vertical space as a sum of height of all its items + margin etc.
When placed in a RefreshView, it takes the whole available space unexpectedly.
Note:
- when setting
VerticalOptions=CenteronRefreshView, theCollectionViewdoes not show at all - workarounds such as wrapping CollectionView in
<Grid>or<ContentView>did not help
Steps to Reproduce
- Run app
To observe correct behavior, remove the RefreshView.
Link to public reproduction project repository
https://github.com/janseris/MauiRefreshViewStretchesCollectionViewVerticallyBug
Note: there is Task.Delay(4000) in UserService which mocks loading the data. Because of that, loading will take 4 seconds.
Version with bug
7.0 (current)
Last version that worked well
7.0 (current)
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 12 (but probably all)
Did you find any workaround?
No response
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewarea-controls-refreshviewRefreshViewRefreshViewarea-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterplatform/androidplatform/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

