Bug 33742 - Grid not expanding to label text
Summary: Grid not expanding to label text
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.5.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-09-07 10:33 UTC by quintonclasquin
Modified: 2016-04-13 18:39 UTC (History)
5 users (show)

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

A content page that illustrates the bug. (3.63 KB, application/octet-stream)
2015-09-07 10:33 UTC, quintonclasquin
Reproduction project (using provided code) (31.45 KB, application/zip)
2015-09-07 20:20 UTC, Paul DiPietro [MSFT]

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description quintonclasquin 2015-09-07 10:33:40 UTC
Created attachment 12803 [details]
A content page that illustrates the bug.

The Grid does not refresh its size within its parent when the text of a child label is updated. Calling ForceLayout on the grid does not resolve this either. 

I have attached a page with the issue.

The page has a timer which updates a label inside a grid (inside another grid). The grid then does not expand its space in the parent grid (myGridLayout) and the items underneath the grid do not move down the page.

Calling the ForceLayout method of the parent does fix this but should not be required (see comment in code).

rotating the page to landscape and back corrects this. (but will not update if the text changes again).
Comment 1 Paul DiPietro [MSFT] 2015-09-07 20:20:14 UTC
Will upload a reproduction project using the provided code, with minor changes for the device timer, and checked against to reproduce.
Comment 2 Paul DiPietro [MSFT] 2015-09-07 20:20:48 UTC
Created attachment 12806 [details]
Reproduction project (using provided code)