mirror of https://github.com/twbs/bootstrap.git
Merge pull request #11722 from DocX/patch-1
Use document scroll height instead of offset height
This commit is contained in:
commit
0fab6e7ea7
|
@ -83,7 +83,7 @@
|
||||||
.trigger($.Event(affixType.replace('affix', 'affixed')))
|
.trigger($.Event(affixType.replace('affix', 'affixed')))
|
||||||
|
|
||||||
if (affix == 'bottom') {
|
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 New Issue