Paul Bakaus wrote: > > I will look at this problems for the new core plugin dimensions.js. > Getting > the calculated style property is always a bit of a hassle. Right now, > $().outerHeight will give you the correct offset height including padding > and border (hopefully cross-browser), but I haven't tested these special > cases yet. >
$().outerHeight works correctly since it indirectly gets the height from e.offsetHeight which is correct. But $().innerHeight runs exactly into the problems i mentioned because it substracts the border width. For example: If you call $().innerHeight for an element which has height:100px and no border assigned, it will return 94 in Opera9.01 because the default border width is 3 if not explicitly assigned. (Sidenote: you get the border width by "borderLeft" instead of "borderLeftWidth" which in some cases is undefined while the "borderLeftWidth" prop contains the correct value. This makes $.fn.innerWidth() return NaN sometimes). You can test that out at http://sorgalla.com/test/borders.html. But i hopefully found a solution for that. Check the source code of the page, there's a rewritten version of $.css() plus a customized $.fn.innerWidth() which uses "borderLeftWidth" and "borderRightWidth" instead of "borderWidth" and "borderWidth". Jan -- View this message in context: http://www.nabble.com/Problems-getting-border-width-tf2239933.html#a6224826 Sent from the JQuery forum at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
