forked from enlightenment/enlightenment
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:
parent
efd0136d22
commit
4c5528a018
|
@ -45,7 +45,6 @@ _editor_bryce_add(Evas_Object *obj)
|
||||||
const char *loc = "", *loc2 = "";
|
const char *loc = "", *loc2 = "";
|
||||||
Bryce_Info *bi;
|
Bryce_Info *bi;
|
||||||
E_Zone *zone;
|
E_Zone *zone;
|
||||||
int x, y;
|
|
||||||
E_Gadget_Site_Gravity gravity = E_GADGET_SITE_GRAVITY_CENTER;
|
E_Gadget_Site_Gravity gravity = E_GADGET_SITE_GRAVITY_CENTER;
|
||||||
|
|
||||||
bi = evas_object_data_get(obj, "__bryce_info");
|
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);
|
e_gadget_site_gadget_add(site, "Wireless", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
evas_object_geometry_get(b, &x, &y, NULL, NULL);
|
evas_object_move(b, zone->x, zone->y);
|
||||||
evas_object_move(b, x + zone->x, y + zone->y);
|
|
||||||
e_gadget_site_gravity_set(site, gravity);
|
e_gadget_site_gravity_set(site, gravity);
|
||||||
e_bryce_style_set(b, bi->style);
|
e_bryce_style_set(b, bi->style);
|
||||||
e_bryce_autohide_set(b, bi->autohide);
|
e_bryce_autohide_set(b, bi->autohide);
|
||||||
|
|
Loading…
Reference in New Issue