2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Fix issue where affixed element has incorrect positioning

when used with a sticky footer layout.
Adds visual test for affix with sticky footer.

Closes #15694.
Refs #15032.
This commit is contained in:
Carlo Stearns
2015-01-28 21:12:46 -08:00
committed by Chris Rebert
parent 1c7e7fdbef
commit 0689117f13
2 changed files with 318 additions and 1 deletions
+1 -1
View File
@@ -78,7 +78,7 @@
var offset = this.options.offset
var offsetTop = offset.top
var offsetBottom = offset.bottom
var scrollHeight = $(document.body).height()
var scrollHeight = Math.max($(document).height(), $(document.body).height())
if (typeof offset != 'object') offsetBottom = offsetTop = offset
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)