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

Commit

Permalink
fix(position): fallback for IE8's scrollTop/Left for offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Laï-King authored and pkozlowski-opensource committed Aug 27, 2013
1 parent 5f9e270 commit 9aecd4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/position/position.js
Expand Up @@ -71,8 +71,8 @@ angular.module('ui.bootstrap.position', [])
return {
width: element.prop('offsetWidth'),
height: element.prop('offsetHeight'),
top: boundingClientRect.top + ($window.pageYOffset || $document[0].body.scrollTop),
left: boundingClientRect.left + ($window.pageXOffset || $document[0].body.scrollLeft)
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)
};
}
};
Expand Down

0 comments on commit 9aecd4e

Please sign in to comment.