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:
commit
0fab6e7ea7
1 changed files with 1 additions and 1 deletions
|
@ -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() })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue