Commit Graph
1 Commits
Author SHA1 Message Date
wizzy-yangandmagpie-fix 07137b9f71 gui: a group's Save no longer leaves the Routing page blank (#884)
The click-hold that keeps what the reader clicked under the pointer holds its
place by scrolling, and makes room at the view's foot when the wanted scroll is
past the content. A group's editor is tall, and the reader scrolls down to its
Save: saving closes the editor, the page shrinks by its height, and the browser
clamps the scroll. What the hold then keeps is a parent that never moved in the
page — the screen moved only by that clamp — so it scrolled back to the old
place and padded the view with a blank view-room as tall as the editor. In a
window shorter than that room not one row of the page was in sight: the Routing
page looked blank while its DOM was intact.

Room is now only kept while some of the view stays in sight; when the whole of
what the reader was looking at is gone, the browser's own clamp stands.

routing-save-blank.test.cjs fails 2/2 on the old assets ("a blank room of
1355px in a 565px window") and passes 2/2 with this. click-scroll and the
group/routing regressions pass as on the baseline.

Co-authored-by: magpie-fix <fix@localhost>
2026-10-05 16:14:26 +08:00