st-bin: Make sure not to allocate hidden children

This commit is contained in:
Jasper St. Pierre 2012-09-04 17:49:46 -03:00
parent db20a54861
commit 7e343f11f2

View File

@ -101,7 +101,7 @@ st_bin_allocate (ClutterActor *self,
clutter_actor_set_allocation (self, box, flags); clutter_actor_set_allocation (self, box, flags);
if (priv->child) if (priv->child && CLUTTER_ACTOR_IS_VISIBLE (priv->child))
{ {
StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (self)); StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (self));
ClutterActorBox childbox; ClutterActorBox childbox;