Merge pull request #2573 from alphagov/fix-sticky-shim

Fix sticky shim having zero height
This commit is contained in:
Chris Hill-Scott
2018-12-12 10:44:20 +00:00
committed by GitHub

View File

@@ -235,7 +235,7 @@
return windowTop > el.scrolledTo;
};
stickAtTop.addShimForEl = function ($el, width, height) {
$el.before('<div class="shim" style="width: ' + width + 'px height: ' + height + 'px">&nbsp</div>');
$el.before('<div class="shim" style="width: ' + width + 'px; height: ' + height + 'px">&nbsp;</div>');
};
stickAtTop.stop = function (el) {
if (!el.stopped()) {