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.
This commit is contained in:
Alexander Larsson 2012-06-08 11:29:43 +02:00
parent 76f1a42ef8
commit c0b3e2e83a

View File

@ -456,6 +456,9 @@ clutter_bin_layout_allocate (ClutterLayoutManager *manager,
gdouble x_align, y_align; gdouble x_align, y_align;
gboolean x_fill, y_fill, is_set; gboolean x_fill, y_fill, is_set;
if (!CLUTTER_ACTOR_IS_VISIBLE (child))
continue;
meta = clutter_layout_manager_get_child_meta (manager, meta = clutter_layout_manager_get_child_meta (manager,
container, container,
child); child);