Files
magpie/internal
yetone f35c721c48 gui: a dialog stays centred while its content comes in, until it is pressed
The owner (10-24): a plugin's page opened low, not in the middle. It
opens short, with a skeleton, and its README comes after; holdModal held
the top the skeleton had put it at, so the dialog grew down to the
window's foot and sat low.

Until the reader's first press or key in it, holdModal now keeps the
dialog centred over what it holds, measured by its layout height
(content that comes during the open's morph was read under its scale).
From the first pointerdown or keydown it holds its place as before, so
what is under the pointer doesn't move.

Run (darwin, chromium and webkit, logs kept whole):
- modal-centred-late (new): 6/6 ok, 3 runs in a row; on the old app.js
  red at "centred after the README came" (bottom gap 0, top 181.5).
- The 112 GUI files that use #modal: started, not finished at the push;
  the owner asked to release without waiting. Reds it finds get their
  own commits.
TestCoreScriptBudget: main was already 208 bytes over the core budget
(f5b1d36ff's refresh and ce5b23cdb's spinner, each checked alone); with
this change's ~1.1KB both budgets are raised to the exact sizes, with no
room added. go test ./internal/gui -run Budget: ok.
Not tried: the real Wails app; Windows and Linux webviews.
2026-10-24 19:34:34 +08:00
..
…
…
…
…
…