From d3210e729a71ffcb1a92a52ac303629455294145 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 26 Apr 2017 01:34:35 +0200 Subject: [PATCH] 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. --- src/lib/menu/menu.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/menu/menu.scss b/src/lib/menu/menu.scss index 4c468a1a9fa..abe8659c654 100644 --- a/src/lib/menu/menu.scss +++ b/src/lib/menu/menu.scss @@ -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;