diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-09-19 14:55:28 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-09-19 14:55:28 -0400 |
commit | d4450d8eb6463affef173990f045072b8c83a482 (patch) | |
tree | 5e617ead167144496da912fd2cca47118084ccc9 | |
parent | 8923415f8b9ae3085b2ecee72707b8f75da458d7 (diff) | |
download | enlightenment-d4450d8eb6463affef173990f045072b8c83a482.tar.gz |
attempt to retain gadget size when executing move operations
-rw-r--r-- | src/bin/e_gadget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c index 7333e10101..59260b48bf 100644 --- a/src/bin/e_gadget.c +++ b/src/bin/e_gadget.c @@ -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; |