forked from enlightenment/efl
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:
parent
57fdaae824
commit
81f94ecada
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue