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

CollectionView does not adjust the size of a group when items in the group change size in ios and android #21913

Open JPfahl opened 6 months ago

JPfahl commented 6 months ago

Description

I am providing the ability to collapse a group in a collectionview. This works perfectly in windows but in ios and android when the height of the items in the group is changed the space in the collectionview for the group is not adjusted. So you endup with a gap the size of the original group.

Steps to Reproduce

In code set the MaximumHeightRequest of each item in a group to 0.

iOS The group may collapse but it will never expand again.

Android image

image

Windows image

image

Link to public reproduction project repository

No response

Version with bug

8.0.20 SR4

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

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

RoiChen001 commented 6 months ago

Can repro this issue at Android platform on the latest 17.10 Preview 6 (8.0.20&8.0.21), but it won't be reproduced on iOS. If you have any questions about this, please provide us with a sample project to better illustrate the problem.

JPfahl commented 6 months ago

In iOS the group will collapse but it will never expand again.

JPfahl commented 5 months ago

Sample Code:

`<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MauiDev.Views.Sample" Title="Sample">

JPfahl commented 4 months ago

I provided a simple example (one page).