Remove fixedTop property from sticky elements

It's no longer used by this code.
This commit is contained in:
Tom Byers
2018-12-13 18:38:42 +00:00
parent 030701ab1b
commit 108cec7938

View File

@@ -119,7 +119,6 @@
}
};
this.setFixedTop(el);
this.setElWidth(el);
this.setElHeight(el, onHeightSet);
};
@@ -131,14 +130,6 @@
});
self.setElementPositions();
};
Sticky.prototype.setFixedTop = function (el) {
var $siblingEl = $('<div></div>');
$siblingEl.insertBefore(el.$fixedEl);
var fixedTop = $siblingEl.offset().top - $siblingEl.position().top;
$siblingEl.remove();
el.fixedTop = fixedTop;
};
Sticky.prototype.setElWidth = function (el) {
el.horizontalSpace = el.$fixedEl.outerWidth(true);
};