- Shipped
- August 14, 2026 at 8:59 PM UTC
- Author
- kamo
- Commit
- 8640c1d
It only landed correctly after the note was resized. The measurement used getBoundingClientRect, which reports the PAINTED box — and a sticky opens by animating from scale 0.86 with a slight rotate, so the first reading was taken mid-entrance and came out shrunk and offset. Nothing corrected it afterwards: a transform is not a layout change, so the ResizeObserver never fired. Resizing was simply the first thing that forced a re-measure once the animation had settled, which is why it looked right only then. It now walks offsetTop/offsetLeft up the offsetParent chain and reads offsetWidth/offsetHeight. Those are layout values, unaffected by any transform, so they read the same mid-animation as at rest — correct on the first frame, with no dependency on the animation finishing. Also re-measures once on the next frame, for the rich editor laying out after it mounts, and bails rather than guessing if the chain does not reach the note root.