Skip to content
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

Open
aksik opened this issue Jan 20, 2025 · 2 comments
Open

CollectionView.EmptyView not respecting layout. #27229

aksik opened this issue Jan 20, 2025 · 2 comments
Labels
i/regression This issue described a confirmed regression on a currently supported version s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@aksik
Copy link

aksik commented Jan 20, 2025

Description

the simplest collection view:

`

<CollectionView.EmptyView>
    <ContentView>
        <StackLayout HorizontalOptions="Center" VerticalOptions="Center">
            <Label
                Margin="10,25,10,10"
                FontAttributes="Bold"
                FontSize="18"
                HorizontalOptions="Fill"
                HorizontalTextAlignment="Center"
                Text="No results matched your filter." />
            <Label
                FontAttributes="Italic"
                FontSize="12"
                HorizontalOptions="Fill"
                HorizontalTextAlignment="Center"
                Text="Try a broader filter?" />
        </StackLayout>
    </ContentView>
</CollectionView.EmptyView>
`

before update to 9.0.30 looked like (9.0.22):

Image

after upgrading:
Image

Steps to Reproduce

  1. create maui template app and replace MainPage content with the one mentioned above.
  2. update Microsoft.Maui.Controls 9.0.30

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

@aksik aksik added the t/bug Something isn't working label Jan 20, 2025
@MitchBomcanhao
Copy link

MitchBomcanhao commented Jan 20, 2025

maybe related CollectionView's EmptyView Does Not Fill Vertical Space ?
workaround on #18626 (comment) seems to work

@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed i/regression This issue described a confirmed regression on a currently supported version labels Jan 21, 2025
@Zhanglirong-Winnie
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i/regression This issue described a confirmed regression on a currently supported version s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants