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 8923415f8b
commit d4450d8eb6
1 changed files with 3 additions and 0 deletions

View File

@ -651,6 +651,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;
@ -663,6 +664,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;