Hi All,
I'm using bootstrap 3.3.7. I have written a menu that will give submenus to nth level using the following basic pattern:
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-collapse collapse">
<ul class='nav navbar-nav'>
<li class="dropdown">
<a href="#">
<span></span> CREATE REPORT
<span></span>
</a>
<ul class="dropdown-menu">
<li class="dropdown-submenu not-visible"><a href="#"><span>Choose a type of report.</span><i class="fa fa-close pull-right icon-dropdown"></i></a></li>
</ul>
<ul class="dropdown-menu main scrollable-menu" role="menu">
<li class="dropdown-submenu level-1" >
<a href="#"> Profiles <img src="images/right_chevron.png" /></a>
<ul class="dropdown-menu level-2 scrollable-menu">
<li role="menuitem"><a href="#">Profile 1</a></li>
<li role="menuitem"><a href="#">Profile 2</a></li>
<li role="menuitem"><a href="#">Profile 3</a></li>
</ul>
</li>
<li class="dropdown-submenu">
<a href="#">Analysing<img src="images/right_chevron.png" /></a>
<ul class="dropdown-menu level-2 scrollable-menu" role="menu">
<li><a href="">one</a></li>
<li><a href="">two</a></li>
<li><a href="">Three</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
without the scrollable-menu class attached this all works, but because some of my menus are large I am attempting to add scroll bard with
.scrollable-menu {
height: auto;
max-height: 300px;
overflow-x: hidden;
}
It correctly places the scrollbar on my first level menu, but when I hover over the first item with a submenu it tries to show the secondlevel wihin the first level view, as opposed to outside when scrolling isn't attached. how can show the second level correctly.