Patches item #876890, was opened at 2004-01-14 15:18 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305757&aid=876890&group_id=5757
Category: DynAPI 2 Layer Group: None Status: Open Resolution: None Priority: 5 Submitted By: Josep Maria (josepm) Assigned to: Nobody/Anonymous (nobody) Summary: getClip in Mozilla and Netscape7 Initial Comment: getClip returns [int,NaN,NaN,Nan] in Mozilla and Netscape 7 where the last three alues are wrong. This way, the setClip method works bad too, when we pass it a null value in the array param. We can avoid this adding this line in the getClip method (/js/lib/dynapi/api/dynlayer.js): if (is.ns5 || is.ns6) while (c.indexOf(",")>0) c=c.replace (",",""); then the method will be these: --------------------------- DynLayer.prototype.getClip=function() { if (this.css==null || !this.css.clip) return [0,0,0,0]; var c = this.css.clip; if (c) { if (is.ns4) return [c.top,c.right,c.bottom,c.left]; if (c.indexOf("rect(")>-1) { if (is.ns5 || is.ns6) while (c.indexOf(",")>0) c=c.replace(",",""); c=c.split("rect(")[1].split(")") [0].split("px"); for (var i in c) c[i]=parseInt (c[i]); return [c[0],c[1],c[2],c[3]]; } else return [0,this.w,this.h,0]; } }; --------------------------- and it works ok with Mozilla and Netscape 6 & 7. :-) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305757&aid=876890&group_id=5757 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/