aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Pakosz <[email protected]>2014-05-09 00:26:31 +0200
committerGregory Pakosz <[email protected]>2014-05-09 00:26:31 +0200
commit78cac11cef392a740e4fae390e9957371243838b (patch)
tree5413734ab206b7c5e801be50c1832351e1e139a0
parent91607900c017777a2c8346f14dd939d65b66fa9d (diff)
downloadbootstrap-78cac11cef392a740e4fae390e9957371243838b.tar.xz
bootstrap-78cac11cef392a740e4fae390e9957371243838b.zip
Fixed affix-bottom positioning
Set top position to (scrollHeight - this.$element.height() - offsetBottom).
-rw-r--r--js/affix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js
index 992ae7ff1..270b039bf 100644
--- a/js/affix.js
+++ b/js/affix.js
@@ -82,7 +82,7 @@
.trigger($.Event(affixType.replace('affix', 'affixed')))
if (affix == 'bottom') {
- this.$element.offset({ top: position.top })
+ this.$element.offset({ top: scrollHeight - this.$element.height() - offsetBottom })
}
}