From 50dd39104c7bd0c80cc457ca409726d875717c37 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 13 Oct 2026 20:39:22 +0800 Subject: [PATCH] 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. --- internal/gui/assets/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js index 71e020a74..7299e65cb 100644 --- a/internal/gui/assets/app.js +++ b/internal/gui/assets/app.js @@ -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