]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixed affix-bottom positioning 13541/head
authorGregory Pakosz <gregory.pakosz@gmail.com>
Thu, 8 May 2014 22:26:31 +0000 (00:26 +0200)
committerGregory Pakosz <gregory.pakosz@gmail.com>
Thu, 8 May 2014 22:26:31 +0000 (00:26 +0200)
Set top position to (scrollHeight - this.$element.height() - offsetBottom).

js/affix.js

index 992ae7ff178602cd43f561fe7d7e4ffc0f434a0c..270b039bf10d806ddc878633d1062549e443c56f 100644 (file)
@@ -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 })
     }
   }