diff --git a/clutter/clutter/clutter-fixed-layout.c b/clutter/clutter/clutter-fixed-layout.c index 095f2d752..9f68bb175 100644 --- a/clutter/clutter/clutter-fixed-layout.c +++ b/clutter/clutter/clutter-fixed-layout.c @@ -66,6 +66,9 @@ clutter_fixed_layout_get_preferred_width (ClutterLayoutManager *manager, { gfloat child_x, child_min, child_natural; + if (!clutter_actor_is_visible (child)) + continue; + child_x = clutter_actor_get_x (child); clutter_actor_get_preferred_size (child, @@ -108,6 +111,9 @@ clutter_fixed_layout_get_preferred_height (ClutterLayoutManager *manager, { gfloat child_y, child_min, child_natural; + if (!clutter_actor_is_visible (child)) + continue; + child_y = clutter_actor_get_y (child); clutter_actor_get_preferred_size (child,