Commit 4956e9ca authored by Andrew Smith's avatar Andrew Smith Committed by Felix Schäfer

Limit the size of the projects dropdown menu. #1016

parent 7c1b1750
......@@ -571,6 +571,13 @@ jQuery(document).ready(function($) {
// Click on the menu header with a dropdown menu
$('#account-nav .drop-down').live('click', function(event) {
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);
......
......@@ -2797,6 +2797,17 @@ input: -moz-placeholder {
border: 1px solid #b7b7b7;
border-top: 0px;
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 {
......@@ -2826,6 +2837,7 @@ input: -moz-placeholder {
margin-right: 6px;
height: 15px;
line-height: 15px;
overflow: hidden;
}
#header li.drop-down li > a.separator {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment