From 5930643de5bf1339ba0341056c11d559c18edae2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 7 Nov 2016 11:48:51 -0500 Subject: [PATCH] use only zone coords when moving bryce to its zone during editing prevent coords from accidentally resulting in offscreen placement fix T4826 --- src/bin/e_bryce_editor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bin/e_bryce_editor.c b/src/bin/e_bryce_editor.c index 9592b6e07..e6383954c 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);