mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
mmalerba
parent
6c31adb05f
commit
d3210e729a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user