Commit 23dc339
fix(igxGrid): Grid should render all columns when grid width is set to null. (#5396)
* fix(igxGrid): Grid should render all columns when grid width is set to null.
* chore(*): Fixing build.
* chore(*): Handling null width inetgration with other grid features that change the total grid width (row selectors, expansion indicators etc.).
* chore(*): Additional handling for null width in combination with: hidden columns, multi-column headers, auto-generated columns, columns with no width. Making sure host binded width prop is set only after zone is stable to prevent timing issues where the same prop value changes during same change detection cycle and throws errors.
* chore(*): Use zone.run for interactions that change the width when ran outside the zone (like resizing).
* chore(*): Adding support for null width + mrl. Fixing getPossibleColumnWidth to depend on getFeatureColumnsWidth so that it takes in cosideration all possible feature columns (not just row selectors).
* chore(*): If width is in % when grid width is null use min width.
* chore(*): In case width is null allow setting null for width host bindings so that grid will expact based on content. In case width is null and column width in % then set width to min width explicitly.
* chore(*): Fixing issues with width = null.
* chore(*): In case width is null, always apply minwidth to columns as default.
* chore(*): Make check more specific to null.
* chore(*): Fixing tests.
* chore(*): Fixing another test.
* chore(*): DetectChanges before feature's column width is calculated so that all option changes are applied.1 parent c725beb commit 23dc339
File tree
7 files changed
+88
-26
lines changed- projects/igniteui-angular/src/lib/grids
- grid
- hierarchical-grid
- tree-grid
7 files changed
+88
-26
lines changedLines changed: 66 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
643 | 644 | | |
644 | 645 | | |
645 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
646 | 654 | | |
647 | 655 | | |
648 | 656 | | |
| |||
651 | 659 | | |
652 | 660 | | |
653 | 661 | | |
654 | | - | |
655 | 662 | | |
656 | 663 | | |
657 | 664 | | |
| |||
3007 | 3014 | | |
3008 | 3015 | | |
3009 | 3016 | | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
3010 | 3022 | | |
3011 | 3023 | | |
3012 | 3024 | | |
| |||
3987 | 3999 | | |
3988 | 4000 | | |
3989 | 4001 | | |
3990 | | - | |
| 4002 | + | |
3991 | 4003 | | |
3992 | 4004 | | |
3993 | 4005 | | |
| |||
4140 | 4152 | | |
4141 | 4153 | | |
4142 | 4154 | | |
4143 | | - | |
4144 | | - | |
4145 | | - | |
| 4155 | + | |
4146 | 4156 | | |
4147 | 4157 | | |
4148 | 4158 | | |
| |||
4206 | 4216 | | |
4207 | 4217 | | |
4208 | 4218 | | |
4209 | | - | |
4210 | | - | |
| 4219 | + | |
| 4220 | + | |
4211 | 4221 | | |
4212 | 4222 | | |
4213 | | - | |
| 4223 | + | |
4214 | 4224 | | |
4215 | 4225 | | |
4216 | | - | |
| 4226 | + | |
4217 | 4227 | | |
4218 | 4228 | | |
4219 | 4229 | | |
4220 | 4230 | | |
4221 | 4231 | | |
4222 | 4232 | | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
| 4242 | + | |
| 4243 | + | |
| 4244 | + | |
| 4245 | + | |
| 4246 | + | |
| 4247 | + | |
| 4248 | + | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
4223 | 4252 | | |
4224 | 4253 | | |
4225 | 4254 | | |
| |||
4317 | 4346 | | |
4318 | 4347 | | |
4319 | 4348 | | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
| 4366 | + | |
| 4367 | + | |
| 4368 | + | |
| 4369 | + | |
| 4370 | + | |
| 4371 | + | |
| 4372 | + | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
4320 | 4376 | | |
4321 | 4377 | | |
4322 | 4378 | | |
| |||
4367 | 4423 | | |
4368 | 4424 | | |
4369 | 4425 | | |
4370 | | - | |
| 4426 | + | |
4371 | 4427 | | |
4372 | 4428 | | |
4373 | 4429 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3508 | 3508 | | |
3509 | 3509 | | |
3510 | 3510 | | |
3511 | | - | |
| 3511 | + | |
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1357 | 1373 | | |
1358 | 1374 | | |
1359 | 1375 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | 735 | | |
746 | 736 | | |
747 | 737 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments