Xamarin.forms: [Bug] CollectionView Dynamic resizing of items not working properly on Xamarin Forms IOS

Created on 20 Nov 2019  路  6Comments  路  Source: xamarin/Xamarin.Forms

Description

on Item tapped in the collection view, we are changing the visibility of a layout. it's working fine on Android while on IOS it's changing the size of all the items below the one tapped.

Steps to Reproduce



    1. 2.
  1. 3.

Expected Behavior

it should only change the size of the tapped item

Actual Behavior

it's changing the size of all the items below the one selected.

Basic Information

  • Version with issue: Xamarin.Forms 4.3.0.991211
  • Last known good version:None
  • IDE:Visual Studio For MAc and For Windows
  • Platform Target Frameworks:

    • iOS:

    • Android:

Screenshots

image
image

collectionview 5 iOS 馃崕 bug

Most helpful comment

Any news on when this might get resolved? Or if there's a workaround for the time being? It seems to fix itself when the CollectionView gets scrolled.

Screen Recording 2020-03-10 at 12 02 45 small

All 6 comments

@eyacoub Can you please attach a small project that demonstrates this issue? Thanks!

Archive.zip
please find attached.

Any news on when this might get resolved? Or if there's a workaround for the time being? It seems to fix itself when the CollectionView gets scrolled.

Screen Recording 2020-03-10 at 12 02 45 small

I've updated nugets and templates in the example from the top of this thread
I've also added fixes from the #10842
It seems like solved the issue.
[updated example TestCollectionViewExpandable.iOS.zip] (https://github.com/xamarin/Xamarin.Forms/files/5015794/TestCollectionViewExpandable.iOS.zip)
ezgif com-video-to-gif

@samhouts In case it helps, here's another repro that doesn't even require user interaction. It's just a simple form that is barely changed from the sample that comes with a new project.

When it first loads, it looks like this (notice the extra space after the third item):

Screen Shot 2020-10-19 at 3 55 13 PM

If you scroll down and then back up, it fixes itself:

Screen Shot 2020-10-19 at 3 59 53 PM

Here's the repro:

Bugs 2.zip

Was this page helpful?
0 / 5 - 0 ratings