dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.97k stars 1.71k forks source link

[MAUI]I8_Header and Footer-The header and emptyview content are not displayed correctly #23697

Open Zhanglirong-Winnie opened 1 month ago

Zhanglirong-Winnie commented 1 month ago

Description

I8_Header and Footer-The header and emptyview content are not displayed correctly Affected case: I8_Header and Footer - View header and footer for itemsource null

Steps to Reproduce

  1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to Windows, iOS or MacCatalyst.
  2. Navigate to 'I8_Header and Footer' ->'View header and footer for itemsource null'
  3. Observe the page display

Actual Behavior: The header and emptyview content are not displayed correctly Windows: The header and emptyview content appear to overlap image

iOS and MacCatalyst: Display only one line of content in an emptyview image

Expected Behavior: The test passes if the header and emptyview content displayed correctly and are not overlapped when itemsource is null. Android: image

Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

Version with bug

Microsoft.Maui.Controls 8.0.60-ci.net8.24304.1

Is this a regression from previous behavior?

Not a regression, The issue also repro on 8.0.70 & 8.0.3

Affected platforms

iOS, Windows, macOS

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.