Skip to content

[iOS/Mac] CollectionView2 EmptyView takes up large horizontal space even when the content is small #33201

@Ahamed-Ali

Description

@Ahamed-Ali

Description

While testing the issues, I found that in CollectionView2 in both iOS and Mac, it takes large horizontal space

CollectionView 1

Image

CollectionView2

Image

Steps to Reproduce

Repro the issue using the below one in hostapp
https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue27229.xaml

Link to public reproduction project repository

https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue27229.xaml

Version with bug

10.0.20

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 18, Mac 26

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions