offset: make sure border width always gets calculated in pixels
authorBrandon Aaron <brandon.aaron@gmail.com>
Wed, 19 Dec 2007 19:05:34 +0000 (19:05 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Wed, 19 Dec 2007 19:05:34 +0000 (19:05 +0000)
src/offset.js

index 11a187e..cf1af33 100644 (file)
@@ -86,7 +86,7 @@ jQuery.fn.offset = function() {
        }
 
        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) {