discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d4450d8eb6463affef173990f045072b8c83a482

commit d4450d8eb6463affef173990f045072b8c83a482
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Sep 19 14:55:28 2016 -0400

    attempt to retain gadget size when executing move operations
---
 src/bin/e_gadget.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index 7333e10..59260b4 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;

-- 


Reply via email to