use only zone coords when moving bryce to its zone during editing

prevent coords from accidentally resulting in offscreen placement

fix T4826
This commit is contained in:
Mike Blumenkrantz 2016-11-07 11:48:51 -05:00
parent a08654f773
commit 5930643de5
1 changed files with 1 additions and 3 deletions

View File

@ -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);