change size of submenus

This commit is contained in:
daria 2024-03-20 13:04:47 +02:00
parent 3c5ca5d561
commit 49128e3c8c
2 changed files with 5 additions and 2 deletions

View File

@ -98,6 +98,10 @@
&.cp-dropdown-submenu {
left: 250px;
top: 130px;
}
&.cp-dropdown-submenu:nth-last-of-type(1){
top: 100px;
}

View File

@ -1690,8 +1690,7 @@ define([
$innerblock.css('bottom', button.height+'px');
}
} else if ($parentMenu) {
let max = $parentMenu.css('max-height');
$innerblock.css('max-height', max);
$innerblock.css('max-height', Math.floor(wh - topPos - 400)+'px');
} else {
$innerblock.css('max-height', Math.floor(wh - topPos - 1)+'px');
}