Commit 6915e8a
fix(autocomplete): update overlay ref width on menu trigger (#3573)
* fix(autocomplete): update overlay ref width on menu trigger
when changing the width of the `host` (or using flex box) the `div.cdk-overlay-pane` kept the width of the host when it was first created
* chore(autocomplete): add pane width unit test
* chore(): parse and round width since firefox and edge return a decimal width
* chore(): update comment to make it more understandable1 parent 5346353 commit 6915e8a
File tree
2 files changed
+31
-1
lines changed- src/lib/autocomplete
2 files changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
970 | 996 | | |
971 | 997 | | |
972 | 998 | | |
973 | 999 | | |
974 | | - | |
| 1000 | + | |
975 | 1001 | | |
976 | 1002 | | |
977 | 1003 | | |
| |||
987 | 1013 | | |
988 | 1014 | | |
989 | 1015 | | |
| 1016 | + | |
990 | 1017 | | |
991 | 1018 | | |
992 | 1019 | | |
| |||
0 commit comments