box: Depth level changes should queue a relayout
ClutterBox is not ClutterGroup: a change in the level of an actor through raise, lower or depth sorting must trigger a relayout.
This commit is contained in:
parent
2cad7e24f0
commit
a5a0171cb0
@ -183,7 +183,7 @@ clutter_box_real_raise (ClutterContainer *container,
|
|||||||
priv->children = g_list_insert (priv->children, actor, index_);
|
priv->children = g_list_insert (priv->children, actor, index_);
|
||||||
}
|
}
|
||||||
|
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (container));
|
clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -204,7 +204,7 @@ clutter_box_real_lower (ClutterContainer *container,
|
|||||||
priv->children = g_list_insert (priv->children, actor, index_);
|
priv->children = g_list_insert (priv->children, actor, index_);
|
||||||
}
|
}
|
||||||
|
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (container));
|
clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -214,7 +214,7 @@ clutter_box_real_sort_depth_order (ClutterContainer *container)
|
|||||||
|
|
||||||
priv->children = g_list_sort (priv->children, sort_by_depth);
|
priv->children = g_list_sort (priv->children, sort_by_depth);
|
||||||
|
|
||||||
clutter_actor_queue_redraw (CLUTTER_ACTOR (container));
|
clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user