diff --git a/app/assets/javascripts/stick-to-window-when-scrolling.js b/app/assets/javascripts/stick-to-window-when-scrolling.js index db3314e83..7d1e0907e 100644 --- a/app/assets/javascripts/stick-to-window-when-scrolling.js +++ b/app/assets/javascripts/stick-to-window-when-scrolling.js @@ -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 = $('
'); - $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); };