Fantastic - thank you.
Best wishes, Dave Cardwell ~ http://davecardwell.co.uk/ John Resig wrote: > You caught me in the middle of some updates, so it's now in rev 226, > slightly modified to be more generic: > http://jquery.com/src/jquery-svn.js > > var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); > r = e.currentStyle[p] || e.currentStyle[np]; > > --John > > On 8/24/06, Dave Cardwell <[EMAIL PROTECTED]> wrote: >> For some reason IE has decided to use e.currentStyle['min-width'] for >> min-width, max-width, min-height and max-height, while it uses the >> e.currentStyle['fontSize'] for everything else. >> >> As such, $.curCSS will simply treat them as undefined, unless you replace: >> p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()}); >> >> with: >> p = p.replace(/([^min|max])-(\w)/g,function(m,c1,c2){return c1 + >> c2.toUpperCase()}); >> >> >> This creates a special case for min/max properties. Is there any way >> this could be included in SVN sharpish, as for such a trivial fix it >> solves a right PITA for me. >> >> >> Best wishes, >> Dave Cardwell ~ http://davecardwell.co.uk/ >> >> _______________________________________________ >> jQuery mailing list >> [email protected] >> http://jquery.com/discuss/ >> > > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
