From aa0cfee1a0dec3fec96cb7af82207b203fb6d08a Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Mon, 30 Jul 2012 14:01:43 +0900 Subject: [PATCH] From: Kim Shinwoo Subject: [E-devel] [patch][elementary] popup - getting proper geometry value] current popup does not give proper geometry value, evas_object_geometry_get(popup, &x, &y, &w, &h) gives 0, 0, 0, 0. the patch resolves it, but it would be not a good way to get geometry value. which is the best way to set obj->cur.geometry.x(y,w,h)? please enlighten me. thanks. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@74409 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 Conflicts: src/lib/elc_popup.c --- config/profile.src | 2 +- src/lib/elc_popup.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/profile.src b/config/profile.src index 331d858..4ad96d5 100644 --- a/config/profile.src +++ b/config/profile.src @@ -1 +1 @@ -default \ No newline at end of file +default diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c index 1013f49..18c6240 100644 --- a/src/lib/elc_popup.c +++ b/src/lib/elc_popup.c @@ -254,6 +254,7 @@ _sizing_eval(Evas_Object *obj) Evas_Coord minw_box = 0, minh_box = 0; Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1; Widget_Data *wd = elm_widget_data_get(obj); + Evas_Coord bx, by, bw, bh; if (!wd) return; if (wd->items) @@ -279,6 +280,11 @@ _sizing_eval(Evas_Object *obj) evas_object_size_hint_min_set(obj, minw, minh); evas_object_size_hint_max_set(obj, maxw, maxh); elm_layout_sizing_eval(wd->base); + + // hack hack hack. this widget needs a ... redo. + evas_object_geometry_get(wd->base, &bx, &by, &bw, &bh); + evas_object_resize(obj, bw, bh); + evas_object_move(obj, bx, by); } static void -- 2.7.4