summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-07 11:48:51 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-07 11:48:51 -0500
commit5930643de5bf1339ba0341056c11d559c18edae2 (patch)
tree397f86f6d48c2f57d23bb05c909c6027b0d02cab
parenta08654f773bbd18c095547a230ac273f969015d1 (diff)
downloadenlightenment-5930643de5bf1339ba0341056c11d559c18edae2.tar.gz
use only zone coords when moving bryce to its zone during editing
prevent coords from accidentally resulting in offscreen placement fix T4826
-rw-r--r--src/bin/e_bryce_editor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/e_bryce_editor.c b/src/bin/e_bryce_editor.c
index 9592b6e071..e6383954c2 100644
--- a/src/bin/e_bryce_editor.c
+++ b/src/bin/e_bryce_editor.c
@@ -45,7 +45,6 @@ _editor_bryce_add(Evas_Object *obj)
const char *loc = "", *loc2 = "";
Bryce_Info *bi;
E_Zone *zone;
- int x, y;
E_Gadget_Site_Gravity gravity = E_GADGET_SITE_GRAVITY_CENTER;
bi = evas_object_data_get(obj, "__bryce_info");
@@ -99,8 +98,7 @@ _editor_bryce_add(Evas_Object *obj)
e_gadget_site_gadget_add(site, "Wireless", 0);
}
- evas_object_geometry_get(b, &x, &y, NULL, NULL);
- evas_object_move(b, x + zone->x, y + zone->y);
+ evas_object_move(b, zone->x, zone->y);
e_gadget_site_gravity_set(site, gravity);
e_bryce_style_set(b, bi->style);
e_bryce_autohide_set(b, bi->autohide);