Skip to content

Commit

Permalink
window.scrollY not supported in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed May 22, 2015
1 parent 6be7b5b commit fed80ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,8 @@
selectOffsetTop,
selectOffsetBot,
posVert = function () {
selectOffsetTop = that.$newElement.offset().top - window.scrollY;
selectOffsetBot = window.innerHeight - selectOffsetTop - selectHeight;
selectOffsetTop = that.$newElement.offset().top - $window.scrollTop();
selectOffsetBot = $window.height() - selectOffsetTop - selectHeight;
};

posVert();
Expand Down

0 comments on commit fed80ec

Please sign in to comment.