Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv24873
Modified Files:
dynlayer.js
Log Message:
Added fixes to NS6 and IE5 getContentHeight/getContentWidth
Index: dynlayer.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dynlayer.js,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** dynlayer.js 2001/03/08 18:39:09 1.35
--- dynlayer.js 2001/03/22 18:01:46 1.36
***************
*** 464,469 ****
else {
if (is.ns4) return this.doc.width;
! else if (is.ie) return parseInt(this.elm.scrollWidth);
! else return this.elm.offsetWidth;
};
};
--- 464,477 ----
else {
if (is.ns4) return this.doc.width;
! else if (is.ie) {
! this.elm.offsetWidth //Mac hack, forces scrollWidth to
fill due to IE 5 mac bug
! return parseInt(this.elm.scrollWidth);
! }
! else {
! this.elm.style.width = "auto";
! var w = this.elm.offsetWidth;
! this.elm.style.width = this.w;
! return w;
! }
};
};
***************
*** 472,477 ****
else {
if (is.ns4) return this.doc.height;
! else if (is.ie) return parseInt(this.elm.scrollHeight);
! else return this.elm.offsetHeight;
}
};
--- 480,493 ----
else {
if (is.ns4) return this.doc.height;
! else if (is.ie) {
! this.elm.offsetHeight //Mac hack, forces scrollHeight
to fill due to IE 5 mac bug
! return parseInt(this.elm.scrollHeight);
! }
! else {
! this.elm.style.height = "auto";
! var h = this.elm.offsetHeight;
! this.elm.style.height = this.h;
! return h;
! }
}
};
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs