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.
This commit is contained in:
Kristiyan Kostadinov
2017-04-26 01:34:35 +02:00
committed by mmalerba
parent 6c31adb05f
commit d3210e729a
+1 -3
View File
@@ -11,9 +11,7 @@ $mat-menu-vertical-padding: 8px !default;
.mat-menu-panel {
@include mat-menu-base();
@include mat-menu-positions();
// max height must be 100% of the viewport height + one row height
max-height: calc(100vh + 48px);
max-height: calc(100vh - #{$mat-menu-item-height});
@include cdk-high-contrast {
outline: solid 1px;