GNOME Bugzilla – Bug 677284
table-layout: Honor actors expand and alignment settings
Last modified: 2012-06-04 14:10:15 UTC
Check if the actor has needs to expand and use Actor.allocate() instead of Actor.allocate_align_fill in that case.
Created attachment 215430 [details] [review] table-layout: Honor actors expand and alignment settings
Review of attachment 215430 [details] [review]: looks okay, apart from a couple of coding style issues. ::: clutter/clutter-table-layout.c @@ +753,3 @@ if (!col->expand) + col->expand = clutter_actor_needs_expand (child, orientation) + || meta->x_expand; the || should go on the previous line, and the block should get curly braces around it. @@ +803,2 @@ if (!columns[i].expand) + columns[i].expand = clutter_actor_needs_expand (child, orientation) same as above. @@ +1026,3 @@ if (!row->expand) + row->expand = clutter_actor_needs_expand (child, orientation) || + meta->y_expand; same as above @@ +1078,3 @@ if (!rows[i].expand) + rows[i].expand = clutter_actor_needs_expand (child, orientation) || + meta->y_expand; same as above
Ok, I fixed the coding style issues Attachment 215430 [details] pushed as a375848 - table-layout: Honor actors expand and alignment settings