Skip to content

CollectionView is scrolling left/right when the collection is empty and inside a RefreshView #34165

@bwinklesky

Description

@bwinklesky

Description

When setting a CollectionView inside a RefreshView the content is scrollable left/right if the collection view is empty.

Image

Steps to Reproduce

Add RefreshView and set the content with a CollectionView

<ContentPage.Content> <RefreshView> <CollectionView ItemsSource=\"{Binding Items}\" > <CollectionView.EmptyView> <Grid VerticalOptions=\"Center" Padding=\"15\"> <Label Text=\"You don't have any tracks.\" HorizontalTextAlignment=\"Center\"></Label> </Grid> </CollectionView.EmptyView> </CollectionView> </RefreshView> </ContentPage.Content>

Link to public reproduction project repository

No response

Version with bug

10.0.30

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions