Update call out to sticky JS, with test for it

This commit is contained in:
Tom Byers
2019-05-21 13:54:45 +01:00
committed by Chris Hill-Scott
parent 0131f0c1b1
commit 1082a37750
2 changed files with 20 additions and 8 deletions

View File

@@ -24,10 +24,10 @@
.on('scroll', this.maintainHeight);
if (
window.GOVUK.stopScrollingAtFooter &&
window.GOVUK.stopScrollingAtFooter.updateFooterTop
window.GOVUK.stickAtBottomWhenScrolling &&
window.GOVUK.stickAtBottomWhenScrolling.recalculate
) {
window.GOVUK.stopScrollingAtFooter.updateFooterTop();
window.GOVUK.stickAtBottomWhenScrolling.recalculate();
}
this.maintainWidth();