From: Kim Shinwoo <kimcinoo.efl@gmail.com>
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 30 Jul 2012 05:01:43 +0000 (14:01 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 30 Jul 2012 05:04:03 +0000 (14:04 +0900)
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
src/lib/elc_popup.c

index 331d858..4ad96d5 100644 (file)
@@ -1 +1 @@
-default
\ No newline at end of file
+default
index 1013f49..18c6240 100644 (file)
@@ -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