mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Merge pull request #2573 from alphagov/fix-sticky-shim
Fix sticky shim having zero height
This commit is contained in:
@@ -235,7 +235,7 @@
|
|||||||
return windowTop > el.scrolledTo;
|
return windowTop > el.scrolledTo;
|
||||||
};
|
};
|
||||||
stickAtTop.addShimForEl = function ($el, width, height) {
|
stickAtTop.addShimForEl = function ($el, width, height) {
|
||||||
$el.before('<div class="shim" style="width: ' + width + 'px height: ' + height + 'px"> </div>');
|
$el.before('<div class="shim" style="width: ' + width + 'px; height: ' + height + 'px"> </div>');
|
||||||
};
|
};
|
||||||
stickAtTop.stop = function (el) {
|
stickAtTop.stop = function (el) {
|
||||||
if (!el.stopped()) {
|
if (!el.stopped()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user