adjusting max height to remove off floating li
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 11 Jan 2016 14:00:02 +0000 (09:00 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 11 Jan 2016 14:00:02 +0000 (09:00 -0500)
js/app.js
js/custom/pageSetup.js

index e4fce24..8f5dccb 100644 (file)
--- 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");
index 9e1c708..c78fd20 100644 (file)
@@ -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");