Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv30587
Modified Files:
dynlayer.js
Log Message:
small coordinate fixes ( affecting only relative layers )
Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -r1.73 -r1.74
*** dynlayer.js 24 Jan 2002 17:43:04 -0000 1.73
--- dynlayer.js 26 Feb 2002 17:57:58 -0000 1.74
***************
*** 232,241 ****
if (this.css==null) return null;
if (is.ns4) return this.css.pageX;
! else return (this.isChild)? this.parent.getPageX()+this.x : this.x;
};
DynLayer.prototype.getPageY=function() {
if (this.css==null) return null;
if (is.ns4) return this.css.pageY;
! else return (this.isChild)? this.parent.getPageY()+this.y : this.y;
};
DynLayer.prototype.setPageX=function(x) {
--- 232,241 ----
if (this.css==null) return null;
if (is.ns4) return this.css.pageX;
! else return Methods.getAbsoluteCoords(this.elm).x
};
DynLayer.prototype.getPageY=function() {
if (this.css==null) return null;
if (is.ns4) return this.css.pageY;
! else return Methods.getAbsoluteCoords(this.elm).y
};
DynLayer.prototype.setPageX=function(x) {
|