Skip to content

Commit d3210e7

Browse files
crisbetommalerba
authored andcommitted
fix(menu): incorrect panel max height (#4214)
Fixes the menu panel having a wrong `max-height` and uses a variables to reduce it, instead of a hardcoded value. Relates to #2725.
1 parent 6c31adb commit d3210e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/menu/menu.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ $mat-menu-vertical-padding: 8px !default;
1111
.mat-menu-panel {
1212
@include mat-menu-base();
1313
@include mat-menu-positions();
14-
15-
// max height must be 100% of the viewport height + one row height
16-
max-height: calc(100vh + 48px);
14+
max-height: calc(100vh - #{$mat-menu-item-height});
1715

1816
@include cdk-high-contrast {
1917
outline: solid 1px;

0 commit comments

Comments
 (0)