We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ead17b7 + f7c360d commit fa4379dCopy full SHA for fa4379d
js/affix.js
@@ -55,8 +55,6 @@
55
var offsetTop = offset.top
56
var offsetBottom = offset.bottom
57
58
- if (this.affixed == 'top') position.top += scrollTop
59
-
60
if (typeof offset != 'object') offsetBottom = offsetTop = offset
61
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
62
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
@@ -84,7 +82,7 @@
84
82
.trigger($.Event(affixType.replace('affix', 'affixed')))
85
83
86
if (affix == 'bottom') {
87
- this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() })
+ this.$element.offset({ top: position.top })
88
}
89
90
0 commit comments