More space on dropdown

This commit is contained in:
Laurent Destailleur 2016-08-29 18:04:21 +02:00
parent 99246ecfba
commit fbdbad0d7c
3 changed files with 3 additions and 1 deletions

View File

@ -1940,7 +1940,7 @@ if (! function_exists("llxFooter"))
//console.log($(this).parent().parent().find(\'dd ul\')); //console.log($(this).parent().parent().find(\'dd ul\'));
$(this).parent().parent().find(\'dd ul\').slideToggle(\'fast\'); $(this).parent().parent().find(\'dd ul\').slideToggle(\'fast\');
// Note: Did not find a way to get exact height (value is update at exit) so i calculate a generic from nb of lines // Note: Did not find a way to get exact height (value is update at exit) so i calculate a generic from nb of lines
heigthofcontent = 19 * $(this).parent().parent().find(\'dd div ul li\').length; heigthofcontent = 21 * $(this).parent().parent().find(\'dd div ul li\').length;
if (heigthofcontent > 300) heigthofcontent = 300; // limited by max-height on css .dropdown dd ul if (heigthofcontent > 300) heigthofcontent = 300; // limited by max-height on css .dropdown dd ul
posbottom = $(this).parent().parent().find(\'dd\').offset().top + heigthofcontent + 8; posbottom = $(this).parent().parent().find(\'dd\').offset().top + heigthofcontent + 8;
//console.log(posbottom); //console.log(posbottom);

View File

@ -4088,6 +4088,7 @@ dl.dropdown {
.dropdown dd ul li { .dropdown dd ul li {
white-space: nowrap; white-space: nowrap;
font-weight: normal; font-weight: normal;
padding: 2px;
} }
.dropdown dd ul li input[type="checkbox"] { .dropdown dd ul li input[type="checkbox"] {
margin-right: 3px; margin-right: 3px;

View File

@ -3988,6 +3988,7 @@ dl.dropdown {
.dropdown dd ul li { .dropdown dd ul li {
white-space: nowrap; white-space: nowrap;
font-weight: normal; font-weight: normal;
padding: 2px;
} }
.dropdown dd ul li input[type="checkbox"] { .dropdown dd ul li input[type="checkbox"] {
margin-right: 3px; margin-right: 3px;