From: Richard B. <ric...@us...> - 2001-11-05 15:03:20
|
Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api In directory usw-pr-cvs1:/tmp/cvs-serv29768 Modified Files: dynlayer.js Log Message: applied Martin Strom's fix to bug 458666 Index: dynlayer.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -r1.69 -r1.70 *** dynlayer.js 2001/11/02 15:39:40 1.69 --- dynlayer.js 2001/11/05 15:03:18 1.70 *************** *** 367,372 **** else { if (is.ns4) return this.doc.width; else if (is.ie) { ! if (is.platform=="mac") this.elm.offsetWidth; return parseInt(this.elm.scrollWidth); } --- 367,373 ---- else { if (is.ns4) return this.doc.width; + //if this.elm.offsetWidth/Height is not accessed, then ie5mac will return NaN. else if (is.ie) { ! if (is.platform=="mac") this.elm.offsetWidth=this.elm.offsetWidth; return parseInt(this.elm.scrollWidth); } *************** *** 384,389 **** else { if (is.ns4) return this.doc.height; else if (is.ie) { ! if (is.platform=="mac") this.elm.offsetHeight; return parseInt(this.elm.scrollHeight); } --- 385,391 ---- else { if (is.ns4) return this.doc.height; + //if this.elm.offsetWidth/Height is not accessed, then ie5mac will return NaN. else if (is.ie) { ! if (is.platform=="mac") this.elm.offsetHeight=this.elm.offsetHeight; return parseInt(this.elm.scrollHeight); } |