forked from enlightenment/enlightenment
never a good idea to place the popup origin at negative coordinates
SVN revision: 39332
This commit is contained in:
parent
ee2ab9506b
commit
64d51112ed
|
@ -155,6 +155,10 @@ e_gadcon_popup_show(E_Gadcon_Popup *pop)
|
||||||
e_popup_move_resize(pop->win, 50, 50, pop->w, pop->h);
|
e_popup_move_resize(pop->win, 50, 50, pop->w, pop->h);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (px - zx < 0)
|
||||||
|
px = zx;
|
||||||
|
if (py - zy < 0)
|
||||||
|
py = zy;
|
||||||
e_popup_move_resize(pop->win, px - zx, py - zy, pop->w, pop->h);
|
e_popup_move_resize(pop->win, px - zx, py - zy, pop->w, pop->h);
|
||||||
|
|
||||||
if (pop->gadcon_lock && (!pop->gadcon_was_locked))
|
if (pop->gadcon_lock && (!pop->gadcon_was_locked))
|
||||||
|
|
Loading…
Reference in New Issue