Skip to content

Commit

Permalink
fix(material/autocomplete): prevent inert host node from affecting su…
Browse files Browse the repository at this point in the history
…rrounding layout (#21649)

Similar to #21246. Prevents the inert host node for `mat-autocomplete` from affecting
the layout around it.

(cherry picked from commit 3bbc0a0)
  • Loading branch information
crisbeto authored and andrewseguin committed Jan 25, 2021
1 parent 0134ac7 commit 9c99070
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/material-experimental/mdc-autocomplete/autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@
}
}

// Prevent the overlay host node from affecting its surrounding layout.
mat-autocomplete {
display: none;
}
4 changes: 4 additions & 0 deletions src/material/autocomplete/autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ $mat-autocomplete-panel-border-radius: 4px !default;
}
}

// Prevent the overlay host node from affecting its surrounding layout.
mat-autocomplete {
display: none;
}

0 comments on commit 9c99070

Please sign in to comment.