Commit 39e0f35
committed
perf(virtual-list): improve height estimates with variant-specific calculations
- Replace generic 50px estimate with variant-specific heights
- Add browser-tested calculations: Calendar(32px), Compact(68px), Subtask(48px), Kanban(110px), Default(120px)
- Account for MaterialCard padding + content height + TaskItem mb-2 margin
- Update test environment to use same variant-specific estimates
- Maintain dynamic measureElement for fine-tuning
Improves initial virtual list rendering accuracy and scroll performance.1 parent 41b1f69 commit 39e0f35
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
88 | 112 | | |
89 | 113 | | |
90 | 114 | | |
91 | | - | |
| 115 | + | |
92 | 116 | | |
93 | 117 | | |
94 | 118 | | |
| |||
130 | 154 | | |
131 | 155 | | |
132 | 156 | | |
133 | | - | |
| 157 | + | |
134 | 158 | | |
135 | 159 | | |
136 | 160 | | |
| |||
0 commit comments