Permalink
Browse files

fix(scrollspy): Minor updates

  • Loading branch information...
tmorehouse committed Sep 15, 2017
1 parent 75367f1 commit 95f08400621682218100c851c4d4a7a071331e8a
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/directives/scrollspy.js
@@ -222,7 +222,7 @@ ScrollSpy.prototype.refresh = function () {
if (!target) {
return null;
}
const bcr = gtBCR(target);
const bcr = getBCR(target);
if (bcr.width || bcr.height) {
return {
offset: (offsetMethod === OffsetMethod.OFFSET ? bcr.top : target.offsetTop) + offsetBase,
@@ -393,7 +393,7 @@ ScrollSpy.prototype._getOffsetHeight = function () {
if (!scroller) {
return 0;
}
return scroller.tagName === 'BODY' ? window.innerHeight : gtBCR(scroller).height;
return scroller.tagName === 'BODY' ? window.innerHeight : getBCR(scroller).height;
};
// Activate the scrolled in target nav-link

0 comments on commit 95f0840

Please sign in to comment.