From 41907c711faa51c067a2f0d94c84ff2bc701dd5b Mon Sep 17 00:00:00 2001 From: Graham Triggs Date: Sat, 23 Sep 2017 00:19:00 +0100 Subject: [PATCH] Window resize handling --- .../tenderfoot/templates/page/partials/headScripts.ftl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/webapp/src/main/webapp/themes/tenderfoot/templates/page/partials/headScripts.ftl b/webapp/src/main/webapp/themes/tenderfoot/templates/page/partials/headScripts.ftl index 33e01c47..c60897b1 100644 --- a/webapp/src/main/webapp/themes/tenderfoot/templates/page/partials/headScripts.ftl +++ b/webapp/src/main/webapp/themes/tenderfoot/templates/page/partials/headScripts.ftl @@ -24,8 +24,13 @@ var i18nStrings = { offset: { top: $('header').height() } - }); - }); + }); + + $( window ).resize(function() { + $('#nav-wrapper').height($("#nav").height()); + }); + + }); ${headScripts.list()}