ensure evry gadget popups effectively clamp to their zones

This commit is contained in:
Mike Blumenkrantz 2016-04-25 13:10:44 -04:00
parent 648f9e14f5
commit 80e46c59bf
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}