gui: 100% picked at the foot of Settings at 150% ends at the foot, not 6px up (#911 again, zh)

Zoomed out, the window's header gets shorter and the view taller, while
no part inside it changes size. relaid (#911) watched only the view's
parts, so nothing put the reader back. The view stayed clamped to the
height it passed through, short of its foot: text-size.test.cjs's
"zh: 100% picked at the foot of the page leaves no blank under it" was
red on main in Chromium ("scrolled from 160 to 109 (max 115)"; seen on
a75de4c21, alone and in the full run). relaid now watches the view too.

Run: text-size.test.cjs (Chromium and WebKit, every language), 4 runs,
22/22 each. Before the change it was 20/22 every run, on a75de4c21 too.
This commit is contained in:
yetone
2026-10-13 20:39:39 +08:00
parent 6bab47729a
commit 50dd39104c
+4
View File
@@ -23645,6 +23645,10 @@ addEventListener("resize", () => {
if (!v || v.hidden) return;
relaidUntil = performance.now() + 1000;
relaid.disconnect();
// the view itself too: the header growing shorter as the page zooms out
// makes it taller with no part of it changing size, and it was left
// clamped to the shorter height, 6px short of its foot
relaid.observe(v);
for (const c of v.children) if (!c.classList.contains("view-room")) relaid.observe(c);
});
// A part that grows or shrinks as it plays (the agents' scroll unrolling