mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 05:30:21 -04:00
Remove fixedTop property from sticky elements
It's no longer used by this code.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user