forked from enlightenment/efl
Cheking if start.layout is set before using it.
When evas_object_show is called with a elm_layout object before resizing it the layout function is called before edje calc function, so the start layout is not yet set. By: Otavio Pontes <otavio@profusion.mobi> SVN revision: 53144
This commit is contained in:
parent
b61340ea1a
commit
631aa54545
|
@ -99,9 +99,12 @@ _edje_box_layout(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data)
|
|||
Edje_Part_Box_Animation *anim = data;
|
||||
if (anim->progress < 0.01)
|
||||
{
|
||||
evas_object_box_padding_set(obj, anim->start.padding.x, anim->start.padding.y);
|
||||
evas_object_box_align_set(obj, TO_DOUBLE(anim->start.align.x), TO_DOUBLE(anim->start.align.y));
|
||||
anim->start.layout(obj, priv, anim->start.data);
|
||||
if (anim->start.layout)
|
||||
{
|
||||
evas_object_box_padding_set(obj, anim->start.padding.x, anim->start.padding.y);
|
||||
evas_object_box_align_set(obj, TO_DOUBLE(anim->start.align.x), TO_DOUBLE(anim->start.align.y));
|
||||
anim->start.layout(obj, priv, anim->start.data);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue