evas/box: Add support for align with stacked boxes

@feature
This commit is contained in:
Jean-Philippe Andre 2016-11-21 19:52:23 +09:00
parent 5f6673f623
commit 3df7b717c9
1 changed files with 5 additions and 0 deletions

View File

@ -1632,6 +1632,11 @@ _evas_box_layout_stack(Eo *o, Evas_Object_Box_Data *priv, Evas_Object_Box_Data *
if ((new_w != child_w) || (new_h != child_h))
evas_object_resize(child, new_w, new_h);
if (priv->align.h >= 0.0)
off_x += (ow - new_w) * priv->align.h;
if (priv->align.v >= 0.0)
off_y += (oh - new_h) * priv->align.v;
evas_object_move(child, ox + off_x, oy + off_y);
if (old_child)