Klaus Hartl schrieb:
> Jörn Zaefferer schrieb:
>
>> Dave Methvin schrieb:
>>
>>>> The core .height() and .width() methods are deprecated in 1.1.
>>>>
>>>>
>>> Sho 'nuff, I missed that. In that case it makes sense to remove it from
>>> dimensions.js eventually.
>>>
>>>
>> Could someone please explain the difference between.
>>
>> 1.0.4 height()/width()
>> 1.0.4 css("height/width")
>> 1.1 css("height/width")
>> dimension's height()/width()
>>
>> What do I need to compute width/height of an invisible element?
>>
>>
>
> > 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.
>
Ok, thanks for the clarification.
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/