Andronicus Riyono wrote:
> One thing that i noticed is, sometimes .css("width") returns 'auto' in
> IE, but .width() always successfully return computed width. Any plan
> about this? perhaps a .computed("width") ? :)

There is an important difference that I found out about, while I was 
searching a bug...: The chainable css('width') function gives you 
different results than width(), because the latter uses $.css(elem, 
'width'),..

I couldn't find my last mail about this in the archive for some strange 
reason (or maybe I just need a coffee first), thus I'm pasting it in here:

 > 1.0.4 height()/width()
returns an integer value (via clientHeight/offsetHeight), e.g. 110

 > 1.0.4 css("height/width")
returns a string (via getComputedStyle), e.g. "110px"

 > 1.1 css("height/width")
same as 1.0.4

 > dimension's height()/width()
with the latest additions from Brandon same as 1.04 height()/width()

 > What do I need to compute width/height of an invisible element?
height()/width() from latest dimensions plugin or $.css(elem,
'height')/$.css(elem, 'width') - $(elem).css('height') will return NaN.



-- Klaus


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to