Merge pull request #91 from alban/mx-1.4

MxGrid: fix row allocation when some children are hidden
This commit is contained in:
Lionel Landwerlin 2013-07-10 07:22:55 -07:00
commit 24efb0cc16
1 changed files with 6 additions and 0 deletions

View File

@ -1329,6 +1329,9 @@ compute_row_height (GList *siblings,
ClutterActor *child = l->data;
gfloat natural_width, natural_height;
if (!CLUTTER_ACTOR_IS_VISIBLE (child))
continue;
/* each child will get as much space as they require */
clutter_actor_get_preferred_size (CLUTTER_ACTOR (child),
NULL, NULL,
@ -1389,6 +1392,9 @@ compute_row_start (GList *siblings,
ClutterActor *child = l->data;
gfloat natural_width, natural_height;
if (!CLUTTER_ACTOR_IS_VISIBLE (child))
continue;
/* each child will get as much space as they require */
clutter_actor_get_preferred_size (CLUTTER_ACTOR (child),
NULL, NULL,