forked from enlightenment/enlightenment
ensure evry gadget popups effectively clamp to their zones
This commit is contained in:
parent
c3700297d7
commit
417ed08329
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue