Bug 44302 - Grid layout row height star pushes auto rows off screen if followed by auto height rows with content containing rowspan
Summary: Grid layout row height star pushes auto rows off screen if followed by auto h...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
: 44960 ()
Depends on:
Reported: 2016-09-14 16:31 UTC by bwing
Modified: 2017-01-04 16:58 UTC (History)
4 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Bug Screenshot (39.34 KB, image/jpeg)
2016-09-14 16:31 UTC, bwing
Bug Project (276.13 KB, application/x-zip-compressed)
2016-09-14 16:38 UTC, bwing

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 44302 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description bwing 2016-09-14 16:31:40 UTC
Created attachment 17466 [details]
Bug Screenshot

When creating a layout in Xamarin.Forms ( the Grid layout incorrectly calculates the size of a row or column with height/width set to GridLength.Star if the rows or columns after it, using GridLength.Auto size, contain content that spans multiple rows/columns.

The example below demonstrates the error when dealing with rows.

**Steps to Reproduce**
Create a grid containing a RowDefinition with height = GridLength.Star.
Add a three rows with height = GridLength.Auto after the star row.
Add content to the first auto row after the star row and set it to span two auto rows.
Add content to the last auto row.

**Actual Results**
Observed on iOS and Android (unable to test on WP) that the auto row content is pushed off the bottom of the screen.

**Expected Results**
The star row should use only the remaining space, if any, and the auto row content should be at the bottom of the grid.

**Build Environment**
Windows 7
Visual Studio 2015 Pro
Date 9-14-2016
Comment 1 bwing 2016-09-14 16:38:13 UTC
Created attachment 17467 [details]
Bug Project
Comment 2 Rui Marinho 2017-01-04 16:58:27 UTC
*** Bug 44960 has been marked as a duplicate of this bug. ***