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:43:54 -05:00
parent b32c39cd58
commit 31a7e545b4
1 changed files with 5 additions and 5 deletions

View File

@ -877,11 +877,11 @@ _box_layout_cb(Evas_Object *o,
linew = ww;
}
evas_object_move(obj,
((!rtl) ? (xx) : (r.x + (r.w - (xx - r.x) - ww)))
+ (Evas_Coord)(((double)(ww - ow)) * ax),
yy + (Evas_Coord)(((double)(hh - oh)) * ay));
evas_object_resize(obj, ow, oh);
evas_object_geometry_set(obj,
((!rtl) ? (xx) : (r.x + (r.w - (xx - r.x) - ww)))
+ (Evas_Coord)(((double)(ww - ow)) * ax),
yy + (Evas_Coord)(((double)(hh - oh)) * ay),
ow, oh);
xx += ww;
xx += priv->pad.h;