elementary: Reduce EO calls by using geometry_set

This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.
This commit is contained in:
Chris Michael 2018-11-21 10:56:46 -05:00
parent f7a414db38
commit 5a35d9d3e3
1 changed files with 1 additions and 2 deletions

View File

@ -169,8 +169,7 @@ _submenu_sizing_eval(Elm_Menu_Item_Data *parent_it)
if (sd->menu_bar && (y_p < py))
y_p = py;
evas_object_move(parent_it->submenu.location, x_p, y_p);
evas_object_resize(parent_it->submenu.location, bw, h_p);
evas_object_geometry_set(parent_it->submenu.location, x_p, y_p, bw, h_p);
evas_object_size_hint_min_set(parent_it->submenu.location, bw, h_p);
evas_object_size_hint_max_set(parent_it->submenu.location, bw, h_p);
elm_hover_target_set(parent_it->submenu.hv, parent_it->submenu.location);