[jQuery] $.css() on width or height

[jQuery] $.css() on width or height

I've come across an issue getting the height or width of an element from
$.css(). It has some special case handling that returns offsetHeight or
offsetWidth since IE in particular likes to return "auto" for height and
width if it hasn't been explicitly set. The problem is that offsetHeight
includes padding and borders, but height does not. So I *think* $.css()
needs to subtract out the element's padding and border to get the right
result. Borders and padding are zero by default on all elements (that's
good) but if they're set in units other than pixels I don't see how we can
convert them in IE (that's bad). Thoughts?
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/