From 21f28d0f34035038a2dfbadae6f0e314fa7afb3a Mon Sep 17 00:00:00 2001 From: Christi Kaes Date: Sat, 25 Feb 2017 11:33:25 -0500 Subject: [PATCH] No max-width for autocomplete panel Currently, the max-width is inherited from the mat-menu-base mixin forcing the panel to have a width of 280px. Overriding it here with none so that the panel can expand out as necessary. Fix based on comments in issue #3198. --- src/lib/autocomplete/autocomplete.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/autocomplete/autocomplete.scss b/src/lib/autocomplete/autocomplete.scss index 80fbcc56d6d2..a72841cbbd54 100644 --- a/src/lib/autocomplete/autocomplete.scss +++ b/src/lib/autocomplete/autocomplete.scss @@ -15,7 +15,8 @@ $mat-autocomplete-panel-above-offset: -24px !default; .mat-autocomplete-panel { @include mat-menu-base(); visibility: hidden; - + + max-width: none; max-height: $mat-autocomplete-panel-max-height; position: relative; @@ -34,4 +35,4 @@ $mat-autocomplete-panel-above-offset: -24px !default; &.mat-autocomplete-hidden { visibility: hidden; } -} \ No newline at end of file +}