diff --git a/customize.dist/src/less2/include/dropdown.less b/customize.dist/src/less2/include/dropdown.less index 7917f99ee..2bd133d46 100644 --- a/customize.dist/src/less2/include/dropdown.less +++ b/customize.dist/src/less2/include/dropdown.less @@ -98,10 +98,6 @@ &.cp-dropdown-submenu { left: 250px; - top: 130px; - } - - &.cp-dropdown-submenu:nth-last-of-type(1){ top: 100px; } diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 34c986cbc..2cc3faf24 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1690,7 +1690,8 @@ define([ $innerblock.css('bottom', button.height+'px'); } } else if ($parentMenu) { - $innerblock.css('max-height', Math.floor(wh - topPos - 400)+'px'); + let max = $parentMenu.css('max-height'); + $innerblock.css('max-height', max); } else { $innerblock.css('max-height', Math.floor(wh - topPos - 1)+'px'); }