mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -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.setElWidth(el);
|
||||||
this.setElHeight(el, onHeightSet);
|
this.setElHeight(el, onHeightSet);
|
||||||
};
|
};
|
||||||
@@ -131,14 +130,6 @@
|
|||||||
});
|
});
|
||||||
self.setElementPositions();
|
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) {
|
Sticky.prototype.setElWidth = function (el) {
|
||||||
el.horizontalSpace = el.$fixedEl.outerWidth(true);
|
el.horizontalSpace = el.$fixedEl.outerWidth(true);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user