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:
committed by
Chris Rebert
parent
1c7e7fdbef
commit
0689117f13
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user