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
22.24k stars 1.76k forks source link

CollectionView, the footer moves to the bottom of the page when the empty view or empty view template is enabled #24966

Open praveenkumarkarunanithi opened 1 month ago

praveenkumarkarunanithi commented 1 month ago

Description

When a CollectionView with an empty view or empty view template is placed within a Grid with a row definition set to "*", the empty view expands to fill the available space, causing the footer to be pushed to the bottom of the screen. This behavior is observed on both Android and iOS platforms.

This issue is a sub-issue of CollectionView Header/Footer/EmptyView issues when adding/removing items. It focuses on the specific problem of footer positioning in Collectionview in Android and iOS platform.

Steps to Reproduce

  1. Create a maui app with a collectionview
  2. Define header/footer/emptyview (and itemtemplate)
  3. with empty view / empty view template observe what happens, especially for empty and footer view .

Link to public reproduction project repository

https://github.com/tranb3r/Issues/tree/main/MauiAppCollectionViewHeaderOrEmpty

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

similar-issues-ai[bot] commented 1 month ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

ninachen03 commented 1 month ago

This issue has been verified using Visual Studio 17.12.0 Preview 2.1(9.0.0-rc.1.24453.9 & 8.0.82). Can repro this issue at Android platform.