attempt to retain gadget size when executing move operations

This commit is contained in:
Mike Blumenkrantz 2016-09-19 14:55:28 -04:00
parent 69afd70c82
commit 5211b4637a
1 changed files with 3 additions and 0 deletions

View File

@ -648,6 +648,7 @@ _gadget_act_move(E_Object *obj, const char *params EINA_UNUSED, E_Binding_Event_
{
E_Gadget_Config *zgc, *z;
Evas_Object *g;
int w, h;
if (obj->type != E_GADGET_TYPE) return EINA_FALSE;
@ -660,6 +661,8 @@ _gadget_act_move(E_Object *obj, const char *params EINA_UNUSED, E_Binding_Event_
ZGS_GET(pointer_site);
_gadget_util_add(zgs, zgc->type, zgc->id);
z = eina_list_data_get(zgs->gadgets);
evas_object_geometry_get(g, NULL, NULL, &w, &h);
evas_object_resize(pointer_site, w, h);
eina_stringshare_refplace(&z->style.name, zgc->style.name);
z->orig = zgc;
return EINA_TRUE;