Repository navigation
Commit cffc301
fix: use consistent border-box measurement in composer ResizeObserver
The initial height was seeded via getBoundingClientRect().height (border-box)
but the ResizeObserver callback read entry.contentRect.height (content-box).
This mismatch would cause a spurious height change detection on the first
callback if the form element ever acquired padding or border.
Use entry.borderBoxSize[0].blockSize (with contentRect fallback) to keep both
measurements in border-box space.
Co-authored-by: Julius Marminge <[email protected]>1 parent 61a8ca2 commit cffc301
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
1338 | | - | |
| 1338 | + | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
| |||
0 commit comments