elm_panel: use widget data for getting geometry

_elm_panel_efl_gfx_size_set() ends up calling
_elm_panel_elm_layout_sizing_eval() to adjust the layout
according to the updated width and height.
however, evas_object_geometr_get() doesn't return the updated values.
in fact, it is not necessary to call any API since the values are
stored as widget data in _elm_widget_efl_gfx_size_set().
This commit is contained in:
Jaeun Choi 2017-05-23 13:11:59 +09:00
parent 57fdaae824
commit 81f94ecada
1 changed files with 2 additions and 5 deletions

View File

@ -64,11 +64,8 @@ _elm_panel_elm_layout_sizing_eval(Eo *obj, Elm_Panel_Data *sd)
if (sd->scrollable)
{
int w, h;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
if (sd->hidden) _drawer_close(obj, w, h, EINA_FALSE);
else _drawer_open(obj, w, h, EINA_FALSE);
if (sd->hidden) _drawer_close(obj, wd->w, wd->h, EINA_FALSE);
else _drawer_open(obj, wd->w, wd->h, EINA_FALSE);
}
evas_object_smart_calculate(sd->bx);