Files
RuneStone/tests/unit/editor
Knotty Wyvern 2b28707ba0 Keep the view in place while scrolling through tables and images
The view jumped to other text in large documents. A short line with
another height, such as a code fence, became the CodeMirror reference
for the line height. CodeMirror then estimated all heights again, and
its layout loop stopped before it restored the scroll position. Each new
table or image height started this check.

- A mark span keeps lines with another height out of that reading.
- A resize observer records the preview heights. A measure request from
  `toDOM` restarted the layout loop.
- A hidden layer measures each table before its first draw.
- Images keep their space from their natural size, in Write and Read.

The scrollStability smoke test and the imageSizes unit test check this.
Real wheel input on large documents gave no jumps in Write and Read.
Card be7df1de.
2026-11-04 21:41:20 -07:00
..
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00
2026-11-03 00:23:07 -07:00