Commit d28698f
committed
fix(Table): include expanded row height when measuring virtualized rows
When a row renders an expanded sibling `<tr>` (`row.getIsExpanded()`),
the virtualizer measures only the primary `<tr>` and misses the
expansion, causing `getTotalSize()` to under-report and the footer
`translateY` offset to drift.
Provide a default `measureElement` that, when the measured element has
`data-expanded="true"`, also adds the immediate next `<tr>` sibling's
height. A user-supplied `measureElement` still takes precedence for the
primary row — the expansion sum is layered on top.
Addresses CodeRabbit review feedback on nuxt#6379.1 parent c1ff5b8 commit d28698f
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
442 | 453 | | |
443 | 454 | | |
444 | 455 | | |
| |||
0 commit comments