|
From: Thyamad c. <th...@us...> - 2006-01-16 03:31:27
|
Update of /cvsroot/thyapi/thyapi/thywidgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13693/thywidgets Modified Files: thywindow.js Log Message: Commiting file additions and modification from SVN revision 2634 to 2635... Changes made by vinicius on 2006-01-16 05:33:22 +0100 (Mon, 16 Jan 2006) corresponding to SVN revision 2635 with message: dont allow window to initialize outside parent window Index: thywindow.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thywindow.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** thywindow.js 1 Sep 2005 18:15:38 -0000 1.6 --- thywindow.js 16 Jan 2006 03:31:19 -0000 1.7 *************** *** 200,205 **** { var pos = thyWindow._getWindowPosition(self); ! self.setX(pos.x); ! self.setY(pos.y); }; --- 200,220 ---- { var pos = thyWindow._getWindowPosition(self); ! if (pos.x < 0) ! { ! self.setX(0); ! } ! else ! { ! self.setX(pos.x); ! } ! ! if (pos.y < 0) ! { ! self.setY(0); ! } ! else ! { ! self.setY(pos.y); ! } }; |