Skip to content

Commit 275de51

Browse files
crisbetojosephperrott
authored andcommitted
fix(menu): showing scrollbars on first open in Edge if item width is set (#12141)
1 parent 3b2c5a6 commit 275de51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/core/style/_menu-common.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ $mat-menu-icon-margin: 16px !default;
3535
text-align: left;
3636
text-decoration: none; // necessary to reset anchor tags
3737

38+
// Required for Edge not to show scrollbars when setting the width manually. See #12112.
39+
max-width: 100%;
40+
3841
&[disabled] {
3942
cursor: default;
4043
}

0 commit comments

Comments
 (0)