Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 1ba07c1

Browse files
mvheckepkozlowski-opensource
authored andcommittedJan 30, 2014
fix(position): remove deprecated body scrollTop and scrollLeft
Fixes #1658 Closes #1677
1 parent 85140f8 commit 1ba07c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/position/position.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ angular.module('ui.bootstrap.position', [])
7272
return {
7373
width: boundingClientRect.width || element.prop('offsetWidth'),
7474
height: boundingClientRect.height || element.prop('offsetHeight'),
75-
top: boundingClientRect.top + ($window.pageYOffset || $document[0].body.scrollTop || $document[0].documentElement.scrollTop),
76-
left: boundingClientRect.left + ($window.pageXOffset || $document[0].body.scrollLeft || $document[0].documentElement.scrollLeft)
75+
top: boundingClientRect.top + ($window.pageYOffset || $document[0].documentElement.scrollTop),
76+
left: boundingClientRect.left + ($window.pageXOffset || $document[0].documentElement.scrollLeft)
7777
};
7878
}
7979
};

0 commit comments

Comments
 (0)