offset: make sure border width always gets calculated in pixels

This commit is contained in:
Brandon Aaron 2007-12-19 19:05:34 +00:00
parent be9302b710
commit add0681f90

View file

@ -86,7 +86,7 @@ jQuery.fn.offset = function() {
} }
function border(elem) { function border(elem) {
add( jQuery.css(elem, "borderLeftWidth"), jQuery.css(elem, "borderTopWidth") ); add( jQuery.curCSS(elem, "borderLeftWidth", true), jQuery.curCSS(elem, "borderTopWidth", true) );
} }
function add(l, t) { function add(l, t) {