discomfitor pushed a commit to branch enlightenment-0.20.

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

commit 80e46c59bf915b88ede1fdd787015d5e00483416
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 25 13:10:44 2016 -0400

    ensure evry gadget popups effectively clamp to their zones
---
 src/modules/everything/evry_gadget.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/everything/evry_gadget.c 
b/src/modules/everything/evry_gadget.c
index a59e5b3..101960f 100644
--- a/src/modules/everything/evry_gadget.c
+++ b/src/modules/everything/evry_gadget.c
@@ -336,11 +336,11 @@ _gadget_popup_show(Instance *inst)
         break;
      }
 
-   if (px + pw > inst->win->zone->x + inst->win->zone->w)
-     x = inst->win->zone->w - pw;
+   if (x + pw > inst->win->zone->x + inst->win->zone->w)
+     x = inst->win->zone->x + inst->win->zone->w - pw;
 
-   if (py + ph > inst->win->zone->y + inst->win->zone->h)
-     y = inst->win->zone->h - ph;
+   if (y + ph > inst->win->zone->y + inst->win->zone->h)
+     y = inst->win->zone->y + inst->win->zone->h - ph;
 
    evas_object_move(ewin, x, y);
 }

-- 


Reply via email to