Merge branch 'master' of https://github.com/russtacular/jquery into russtacular-master
[jquery.git] / src / offset.js
index 2040c9d..a10d30a 100644 (file)
@@ -30,7 +30,7 @@ if ( "getBoundingClientRect" in document.documentElement ) {
 
                // Make sure we're not dealing with a disconnected DOM node
                if ( !box || !jQuery.contains( docElem, elem ) ) {
-                       return box || { top: 0, left: 0 };
+                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
                }
 
                var body = doc.body,