xamarin/Xamarin.Forms

[Bug] GridLength of 0 no longer hides/clips grid row content

Open

#8,131 opened on Oct 21, 2019

 (5 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
4.2.0a/layouthelp wantedi/regressioninactivep/Androidt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

Setting the height of a grid row to an absolute size of 0 no longer properly hides/clips the composite control content in that row. I validated that this is a bug in XF 4.2.0.848062 and is still broken in 4.3.0.851321-pre3. This used to work in XF 3.4.0.1008975.

Steps to Reproduce

  1. Create a composite control (e.g. containing a label and an image)
  2. Add the composite control to a grid row
  3. Programmatically set the height of the grid row to 0 absolute.

Expected Behavior

The composite control content within the grid row is hidden.

Actual Behavior

The composite control content within the grid row is partially visible.

Basic Information

  • Version with issue: XF 4.2.0.848062
  • Last known good version: XF 3.4.0.1008975
  • IDE: Visual Studio 2019 Enterprise
  • Platform Target Frameworks:
    • Android: Target Framework 9
  • Affected Devices:
    • Galaxy S8+ with Android 8.0.0

Screenshots

Both rows 0 and 1 show correctly (red and green) Normal Height

Row 0 should be hidden completely (red) Zero Height

Row 1 should be hidden completely (green) Zero Height other row

Reproduction Link

GridRowHeightRedraw.zip

Contributor guide