Commit a6a26d0
committed
web: pass saved widths to makeResizableHeaders to skip the measuring reflow
makeResizableHeaders now takes an optional widths array; when given
(e.g. widths saved from the previous render) it applies them directly
instead of resetting to auto layout and reading offsetWidth, avoiding
a forced reflow on every timing table re-render.
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>1 parent 92f8388 commit a6a26d0
2 files changed
Lines changed: 20 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
378 | 373 | | |
379 | 374 | | |
380 | 375 | | |
| |||
449 | 444 | | |
450 | 445 | | |
451 | 446 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
460 | 451 | | |
461 | 452 | | |
462 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments