xamarin/Xamarin.Forms

[iOS] Dynamic cell content changes scroll position in CollectionView

开放

#7,195 创建于 2019年8月17日

 (1 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/collectionviewhelp wantedp/iOS 🍎partner/cat 😻s/unverifiedt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

Current implementation of cell resizing does not work properly. No idea if this is in any way related to #7128 or #7152.

We should probably create an automated test for this since we're now able to listen to scroll position changes through the Scrolled event.

Please also test this on Android in case the issue exists there as well.

Steps to Reproduce

  1. Run the Gallery app on a physical device (tested on XS)
  2. Go to CollectionView Gallery (enable CollectionView)
  3. Go to Item Size Galleries -> Expanding Text (Vertical List)
  4. Tap "More Text" on any item (ignore the first 3 items)
  5. Observe that as the cell height changes, scroll position changes as well
  6. Compare this functionality to Instagram (As you hit "more", scroll position never changes)
  7. If unable to reproduce, keep hitting "More Text" on other items until you see the issue.

Expected Behavior

Dynamic cell height should not move the cell up or down.

Actual Behavior

We lose current scroll position as cell height changes upon user action.

贡献者指南