Fix sticky with find as you type

It was losing its position because filtering the list of templates with
find as you type was causing the height of the page to change.
This commit is contained in:
Chris Hill-Scott
2018-12-21 14:37:01 +00:00
parent 5d8147bbbd
commit 6487273ced

View File

@@ -27,6 +27,12 @@
});
// make sticky JS recalculate its cache of the element's position
// because live search can change the height document
if ('stickAtBottomWhenScrolling' in GOVUK) {
GOVUK.stickAtBottomWhenScrolling.recalculate();
}
};