discomfitor pushed a commit to branch master.

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

commit 1c3b45e9843f1a405225658c2ecfd694a00851d0
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Mar 18 13:47:00 2016 -0400

    use zone geometry when clamping evry gadget popup to gadget's screen
    
    fix T3238
---
 src/modules/everything/evry_gadget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

-- 


Reply via email to