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

ViewCell in TableView not adapting to changed size on iOS #2842

@mkuennek

Description

@mkuennek

Description

When changing the height of the content in a ViewCell inside a TableView, the cell height is adapted correctly on Android and UWP but not on iOS. Instead the content of the specific cell is larger than the cell itself and appears below the cell's lower border.

Steps to Reproduce

  1. Add a ViewCell to a TableView(HasUnevenRows="True" Intent="Settings").
  2. As the cells content set two labels inside a grid or StackLayout below each other. Set the visibility of the first label to true, the second one to false.
  3. Add another cell below the first cell in the same table section.
  4. Add a gesture recognizer to the Grid/StackLayout that sets the visibility of the second label to true, when the cell is tapped.

Expected Behavior

The cell adapts its size as on Android or UWP.

Actual Behavior

The cell content overlaps the lower border of the cell.

Basic Information

  • Version with issue: 3.0.0.482510
  • Last known good version: -
  • IDE: Visual Studio 2017 Enterprise 15.1
  • Platform Target Frameworks:
    • iOS: 11.3
  • Nuget Packages: Just Xamarin.Forms
  • Affected Devices: Simulator as well as the physical devices I tested (iPhone 4S and 8)

Screenshots

Before:
before

After:
after

Reproduction Link

TableViewGrowingCellExample.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions