never a good idea to place the popup origin at negative coordinates

SVN revision: 39332
This commit is contained in:
Viktor Kojouharov 2009-03-02 15:18:42 +00:00
parent ee2ab9506b
commit 64d51112ed
1 changed files with 4 additions and 0 deletions

View File

@ -155,6 +155,10 @@ e_gadcon_popup_show(E_Gadcon_Popup *pop)
e_popup_move_resize(pop->win, 50, 50, pop->w, pop->h);
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);
if (pop->gadcon_lock && (!pop->gadcon_was_locked))