Limit the size of the projects dropdown menu. #1016
This commit is contained in:
parent
7c1b17509f
commit
4956e9ca93
@ -571,6 +571,13 @@ jQuery(document).ready(function($) {
|
|||||||
// Click on the menu header with a dropdown menu
|
// Click on the menu header with a dropdown menu
|
||||||
$('#account-nav .drop-down').live('click', function(event) {
|
$('#account-nav .drop-down').live('click', function(event) {
|
||||||
var menuItem = $(this);
|
var menuItem = $(this);
|
||||||
|
var menuUl = menuItem.find('> ul');
|
||||||
|
|
||||||
|
menuUl.css('height', 'auto');
|
||||||
|
if(menuUl.height() > $.viewportHeight()) {
|
||||||
|
var windowHeight = $.viewportHeight() - 150;
|
||||||
|
menuUl.css({'height': windowHeight});
|
||||||
|
}
|
||||||
|
|
||||||
toggleTopMenu(menuItem);
|
toggleTopMenu(menuItem);
|
||||||
|
|
||||||
|
@ -2797,6 +2797,17 @@ input: -moz-placeholder {
|
|||||||
border: 1px solid #b7b7b7;
|
border: 1px solid #b7b7b7;
|
||||||
border-top: 0px;
|
border-top: 0px;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
display:none;
|
||||||
|
position:absolute;
|
||||||
|
height:auto;
|
||||||
|
min-width:200px;
|
||||||
|
left:-1px;
|
||||||
|
z-index:20;
|
||||||
|
border: 1px solid #b7b7b7;
|
||||||
|
border-top: 0px;
|
||||||
|
background-color:#FFFFFF;
|
||||||
|
overflow: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header li.last-child > ul {
|
#header li.last-child > ul {
|
||||||
@ -2826,6 +2837,7 @@ input: -moz-placeholder {
|
|||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header li.drop-down li > a.separator {
|
#header li.drop-down li > a.separator {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user