diff options
| author | Lukáš Doležal <[email protected]> | 2013-12-05 16:28:31 +0100 |
|---|---|---|
| committer | Lukáš Doležal <[email protected]> | 2013-12-05 16:28:31 +0100 |
| commit | 6e9efb2024e76d72ae1b39eaa2fda9f01ff7a28f (patch) | |
| tree | 4b80b99a96080b4f50ec402487bfacc4d17ce6f1 | |
| parent | aac4f0189ed4d20701224d9782919bec042b427c (diff) | |
| download | bootstrap-6e9efb2024e76d72ae1b39eaa2fda9f01ff7a28f.tar.xz bootstrap-6e9efb2024e76d72ae1b39eaa2fda9f01ff7a28f.zip | |
Use document scroll height instead of offset height to support body with absolute height
| -rw-r--r-- | js/affix.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js index 552bffa3f..e025e2056 100644 --- a/js/affix.js +++ b/js/affix.js @@ -73,7 +73,7 @@ this.$element.removeClass(Affix.RESET).addClass('affix' + (affix ? '-' + affix : '')) if (affix == 'bottom') { - this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() }) + this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() }) } } |
