forked from enlightenment/efl
efl_ui_popup: remove unnecessary function call
Summary: In _calc_align function, it could get align property through Efl_Ui_Popup_Data *pd directly, but call align_get function previously. Reviewers: Jaehyun_Cho, herb, thiepha, jpeg, cedric, woohyun Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5207
This commit is contained in:
parent
f5010b7ba6
commit
a7082df12b
|
@ -47,10 +47,7 @@ _calc_align(Evas_Object *obj)
|
|||
Evas_Coord pw, ph;
|
||||
evas_object_geometry_get(obj, NULL, NULL, &pw, &ph);
|
||||
|
||||
Efl_Ui_Popup_Align align;
|
||||
align = efl_ui_popup_align_get(obj);
|
||||
|
||||
switch (align)
|
||||
switch (pd->align)
|
||||
{
|
||||
case EFL_UI_POPUP_ALIGN_CENTER:
|
||||
efl_gfx_position_set(efl_super(obj, MY_CLASS), EINA_POSITION2D(x + ((w - pw ) / 2), y + ((h - ph) / 2)));
|
||||
|
|
Loading…
Reference in New Issue