Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [UWP] Dynamic Item Sizing doesn't work in CollectionView on UWP #9056

Closed
BurkusCat opened this issue Dec 31, 2019 · 4 comments
Closed

Comments

@BurkusCat
Copy link
Contributor

BurkusCat commented Dec 31, 2019

Description

On UWP, the CollectionView's items do not resize to content changing size. Items remain a fixed height whereas on Android items will shrink and expand to fit the content. https://gist.github.com/hartez/7d0edd4182dbc7de65cebc6c67f72e14

Steps to Reproduce

  1. Create a CollectionView, populate with multiple items, and have the data template have multiple rows of data
  2. Hide one row of data by default
  3. Dynamically toggle that row on and off using something like a button

Expected Behavior

The item will expand/contract to show/hide the row.

Actual Behavior

The row pushes/covers other content or doesn't show because the item remains a fixed height on UWP.

Basic Information

  • Version with issue: 4.4.0.991265
  • Last known good version: N/A
  • IDE: Visual Studio 2019 16.3.6
  • Platform Target Frameworks:
    • iOS: N/A
    • Android: N/A
    • UWP: 16299
  • Android Support Library Version: N/A
  • Nuget Packages: N/A
  • Affected Devices: N/A

Screenshots

Genre can be toggled to show on the Android version but not the UWP version.
uwp-not-resizing
android-resizing

Reproduction Link

DynamicItemSizingUWP.zip

@BurkusCat BurkusCat added s/unverified New report that has yet to be verified t/bug 🐛 labels Dec 31, 2019
@hartez hartez added e/4 🕓 4 and removed s/unverified New report that has yet to be verified labels Jan 2, 2020
@YZahringer
Copy link
Contributor

Any news on that? A simple Label that changes text at runtime is not usable with CollectionView on UWP.

For the moment the workaround I found is to remove the item from the Collection and re-insert it to force redraw of element.

@DevEddy
Copy link

DevEddy commented Jun 12, 2020

Same issue here...

@BurkusCat
Copy link
Contributor Author

BurkusCat commented Aug 8, 2020

I think this issue can be closed. I updated my reproduction project to 4.7.0.1260 and the issue is fixed,

image

@YZahringer
Copy link
Contributor

YZahringer commented Aug 8, 2020

I confirm in XF 4.8.0.1269, CollectionView item resize correctly on content visibility and size change 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants