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

Similar to angular#21246. Prevents the inert host node for `mat-autocomplete` from affecting
the layout around it.
  • Loading branch information
crisbeto committed Jan 20, 2021
1 parent 8172d06 commit e43eaba
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 e43eaba

Please sign in to comment.