[jQuery] Fading problems with jQuery 1.0a on MSIE
I have been experiencing a problem with the jQuery 1.0 Alpha Release: if I
try to do a fadeIn/fadeOut on an element that does not have a CSS
attribute called "opacity" set, it does not fade at all in IE6. I traced
the problem to a NaN value coming from a call to parseFloat in the z.cur()
function. My fix was to change this:
// Get the current size
z.cur = function(){
return parseFloat( jQuery.css(z.el,prop) );
};
To this:
// Get the current size
z.cur = function(){
return parseFloat( jQuery.css(z.el,prop) || 1 );
};
I am not sure what the repercussions of this change are, since I have
only a cursory understanding of this code, but it has so far not created
any other problems for me.
I am also experiencing flicker problems with the slideUp/slideDown on IE6,
which I have had to resort to setTimeout()s that call hide/show on the
element a moment before (or after) the flicker would happen. For instance,
it appears like the height is going: 0%, 100%, 0%, 1%, 2%, ... - if anyone
knows of an easier solution to this problem, I'd love to hear it.
Thanks,
Dave
--
.. Dave Benjamin - Software Developer - ramenlabs.com
.. AIM: ramenlabs / MSN: ramenlabs@hotmail.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/