1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 20:55:50 +02:00

Fixed affix-bottom positioning

Set top position to (scrollHeight - this.$element.height() - offsetBottom).
This commit is contained in:
Gregory Pakosz
2014-05-09 00:26:31 +02:00
parent 91607900c0
commit 78cac11cef

View File

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