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

Commit

Permalink
fix(position): remove deprecated body scrollTop and scrollLeft
Browse files Browse the repository at this point in the history
Fixes #1658
Closes #1677
  • Loading branch information
mvhecke authored and pkozlowski-opensource committed Jan 30, 2014
1 parent 85140f8 commit 1ba07c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/position/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ angular.module('ui.bootstrap.position', [])
return {
width: boundingClientRect.width || element.prop('offsetWidth'),
height: boundingClientRect.height || element.prop('offsetHeight'),
top: boundingClientRect.top + ($window.pageYOffset || $document[0].body.scrollTop || $document[0].documentElement.scrollTop),
left: boundingClientRect.left + ($window.pageXOffset || $document[0].body.scrollLeft || $document[0].documentElement.scrollLeft)
top: boundingClientRect.top + ($window.pageYOffset || $document[0].documentElement.scrollTop),
left: boundingClientRect.left + ($window.pageXOffset || $document[0].documentElement.scrollLeft)
};
}
};
Expand Down

0 comments on commit 1ba07c1

Please sign in to comment.