1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Merge pull request #11722 from DocX/patch-1

Use document scroll height instead of offset height
This commit is contained in:
Jacob 2013-12-24 16:43:24 -08:00
commit 0fab6e7ea7

View file

@ -83,7 +83,7 @@
.trigger($.Event(affixType.replace('affix', 'affixed')))
if (affix == 'bottom') {
this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() })
this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() })
}
}