Don't allocate size for invisible BinLayout children
This commit is contained in:
@ -326,6 +326,9 @@ clutter_bin_layout_get_preferred_width (ClutterLayoutManager *manager,
|
||||
{
|
||||
gfloat minimum, natural;
|
||||
|
||||
if (!CLUTTER_ACTOR_IS_VISIBLE (child))
|
||||
continue;
|
||||
|
||||
clutter_actor_get_preferred_width (child, for_height,
|
||||
&minimum,
|
||||
&natural);
|
||||
@ -360,6 +363,9 @@ clutter_bin_layout_get_preferred_height (ClutterLayoutManager *manager,
|
||||
{
|
||||
gfloat minimum, natural;
|
||||
|
||||
if (!CLUTTER_ACTOR_IS_VISIBLE (child))
|
||||
continue;
|
||||
|
||||
clutter_actor_get_preferred_height (child, for_width,
|
||||
&minimum,
|
||||
&natural);
|
||||
|
Reference in New Issue
Block a user