Menu

#140 patch for Mozilla and XHTML docTypes

open
nobody
5
2002-04-19
2002-04-19
Andy Short
No

Fix for Bug :
[ 479910 ] moveTo & Mozilla 0.9.5 & xhtml doctypes

Line 190 in DynLayer.js
- - - - - - - - - - - - - - - - -
if (is.ns) {
DynLayer.prototype._setX=function(){
this.css.left=this.x+((is.dom)?"px":0);};
DynLayer.prototype._setY=function(){
this.css.top=this.y+((is.dom)?"px":0);};
}

- - - - - - - - - - - - - - - - -
Added the "px" string on setting the css top/left
values for netscape dom browsers,

With Mozilla (9.7-1.0rc1) if an xhtml doctype is
present all dependant functions based on the
_setX/setY methods including moveTo etc would fail to
work.

IE6 in strict or quirks mode treats any numeric value
as px unless % is explicitly stated, so the patch was
not needed for IE6.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.