From 139c5d59c4f61ae1948cdb16f2a4353fedf2cecb Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Tue, 10 Mar 2015 17:03:36 +0900 Subject: [PATCH] popup: fix mistake this is introduced in d4eaee4eb97210ed153c161fc8b7d21967f61131. the position should be rearragned after geometry_get(). --- src/lib/elc_popup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c index 58a0880..0329e23 100644 --- a/src/lib/elc_popup.c +++ b/src/lib/elc_popup.c @@ -1425,13 +1425,14 @@ _parent_geom_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_i Evas_Coord x, y, w, h; Evas_Object *popup = data; + evas_object_geometry_get(obj, &x, &y, &w, &h); + if (eo_isa(obj, ELM_WIN_CLASS)) { x = 0; y = 0; } - evas_object_geometry_get(obj, &x, &y, &w, &h); evas_object_move(popup, x, y); evas_object_resize(popup, w, h); } -- 2.7.4