Enlightenment CVS committal Author : devilhorns Project : e_modules Module : net
Dir : e_modules/net/src Modified Files: e_mod_net.c Log Message: Fix popup window position. =================================================================== RCS file: /cvs/e/e_modules/net/src/e_mod_net.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_mod_net.c 11 Feb 2007 15:28:53 -0000 1.1 +++ e_mod_net.c 11 Feb 2007 23:20:19 -0000 1.2 @@ -175,19 +175,19 @@ case E_GADCON_ORIENT_LEFT: case E_GADCON_ORIENT_CORNER_LB: wx += ox + ow; - wy = oy; + wy = y; break; case E_GADCON_ORIENT_CORNER_RT: - wx -= (ww - ((x + w) - (ox + ow)) + 5); + wx -= ww - (ox - 5); if (top) wy += oh; break; case E_GADCON_ORIENT_RIGHT: - wx -= (ww - ((x + w) - (ox + ow)) + 5); + wx -= ww - (ox - 5); if (top) wy -= (oh - 5); break; case E_GADCON_ORIENT_CORNER_RB: - wx -= (ww - ((x + w) - (ox + ow)) + 5); - wy = oy; + wx -= ww - (ox - 5); + wy -= oy; break; case E_GADCON_ORIENT_TOP: case E_GADCON_ORIENT_CORNER_TL: @@ -199,13 +199,15 @@ break; case E_GADCON_ORIENT_BOTTOM: case E_GADCON_ORIENT_CORNER_BL: + wx += ((ow - ww) / 2); + if (wx < x) wx = x; + wy = (y - wh); + break; case E_GADCON_ORIENT_CORNER_BR: wx += ((ow - ww) / 2); if (wx < x) wx = x; if ((wx + ww) > (x + w)) wx = ((x + w) - ww); - wy = (oy - wh); - break; - default: + wy = (y - wh); break; } e_popup_move_resize(inst->popup->win, wx, wy, ww, wh); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs