From: Anthony Talarico Date: Mon, 11 Jan 2016 14:00:02 +0000 (-0500) Subject: adjusting max height to remove off floating li X-Git-Tag: v1.0.0^2~78 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f2cbf830facacb3bc8bf130d0eab7a2982eb0db1;p=WP-Themes%2Fotsego.git adjusting max height to remove off floating li --- diff --git a/js/app.js b/js/app.js index e4fce24..8f5dccb 100644 --- a/js/app.js +++ b/js/app.js @@ -48,6 +48,10 @@ $(document).ready(function () { }); // caching menu elements + var $menu1 = $(".top-bar-section > ul") + .children("li") + .eq(0) + .children("ul.sub-menu.dropdown"); var $menu2 = $(".top-bar-section > ul") .children("li") .eq(1) @@ -65,10 +69,12 @@ $(document).ready(function () { .eq(5) .children("ul.sub-menu.dropdown"); // adjusting nav menu columns and li width + $menu1 + .css("max-height", "235px"); $menu2 .css("-moz-columns", "2") .css("-webkit-columns", "2") - .css("max-height", "165px"); +// .css("max-height", "165px"); $menu2 .children("li.menu-item") .css("width", "300px"); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 9e1c708..c78fd20 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -39,6 +39,10 @@ $(document).ready(function () { }); // caching menu elements + var $menu1 = $(".top-bar-section > ul") + .children("li") + .eq(0) + .children("ul.sub-menu.dropdown"); var $menu2 = $(".top-bar-section > ul") .children("li") .eq(1) @@ -56,10 +60,12 @@ $(document).ready(function () { .eq(5) .children("ul.sub-menu.dropdown"); // adjusting nav menu columns and li width + $menu1 + .css("max-height", "235px"); $menu2 .css("-moz-columns", "2") .css("-webkit-columns", "2") - .css("max-height", "165px"); +// .css("max-height", "165px"); $menu2 .children("li.menu-item") .css("width", "300px");