box: implement Evas.Object_Smart.calculate

this allows boxes to be manually calculated

ref T2836
This commit is contained in:
Mike Blumenkrantz 2015-12-22 13:45:48 -05:00
parent 8d756fe505
commit d512b185bf
2 changed files with 9 additions and 0 deletions

View File

@ -373,6 +373,14 @@ _transition_layout_animation_exec(Evas_Object *obj,
}
}
EOLIAN static void
_elm_box_evas_object_smart_calculate(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
evas_object_smart_calculate(wd->resize_obj);
}
EOLIAN static void
_elm_box_evas_object_smart_add(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED)
{

View File

@ -282,6 +282,7 @@ class Elm.Box (Elm.Widget)
Eo.Base.constructor;
Evas.Object_Smart.add;
Evas.Object_Smart.del;
Evas.Object_Smart.calculate;
Elm.Widget.focus_direction;
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_direction_manager_is;