From: Alexander Larsson Date: Fri, 8 Jun 2012 09:29:43 +0000 (+0200) Subject: Don't allocate size to invisible BinLayout children X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0b3e2e83aca99541ef5eeb15549a482ecf4f7d7;p=profile%2Fivi%2Fclutter.git Don't allocate size to invisible BinLayout children This is similar to what other layouts do, and avoids problems with Gtk+ actor children which warn about being allocated not enough space. --- diff --git a/clutter/clutter-bin-layout.c b/clutter/clutter-bin-layout.c index a1ff28a..20c3051 100644 --- a/clutter/clutter-bin-layout.c +++ b/clutter/clutter-bin-layout.c @@ -456,6 +456,9 @@ clutter_bin_layout_allocate (ClutterLayoutManager *manager, gdouble x_align, y_align; gboolean x_fill, y_fill, is_set; + if (!CLUTTER_ACTOR_IS_VISIBLE (child)) + continue; + meta = clutter_layout_manager_get_child_meta (manager, container, child);