Skip to content

Commit

Permalink
No max-width for autocomplete panel
Browse files Browse the repository at this point in the history
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 angular#3198.
  • Loading branch information
christikaes authored Feb 25, 2017
1 parent c203589 commit 21f28d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/autocomplete/autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -34,4 +35,4 @@ $mat-autocomplete-panel-above-offset: -24px !default;
&.mat-autocomplete-hidden {
visibility: hidden;
}
}
}

0 comments on commit 21f28d0

Please sign in to comment.