Synchronize expanded drawing layout updates
Shrinking the Example drawing after a viewport resize can clamp the saved scroll position if it is restored before the drawer measures the docked height. An optional synchronous callback updates the drawer and Jim's stage on expand and shrink, so the docked height is ready before scroll restoration. This removes the two observers on data-expanded. The stage returns fit for #713 to use; its hidden observers are still needed for the ending and report overlays.
Validation: all 62 focused Chromium tests passed. Five separate delay probes failed at the intended assertions for stage layout, Escape, horizontal scroll, outer panel scroll, and programmatic shrink(). The Rust gate passed on the current head with a receipt (optional cargo-deny skipped). The prior full scripts/test.sh ran on Linux before the rebase onto the gate evidence workflow: the static browser suite had 3,451 passes and 30 skips (Java and ffmpeg unavailable). Four tooling gates failed locally and reproduced on upstream main at 21c45b14 in the same environment.
Close #641
Summary by cubic
Synchronizes expanded drawing layout updates so shrinking the Example drawing measures the docked height before restoring scroll, fixing the strip's scroll position after a resize while expanded.
- Replaces the
data-expandedmutation observers andqueueMicrotaskinshrinkBoardwith a new synchronousonExpandedChangecallback that runs the drawer'spaintand Jim'sfitJimStagebefore scroll restoration. mountInterviewDrawerandcompactJimStageBesideNarrowPanelnow returnpaintandfitso callers can invoke them directly;mountExampleBoardaccepts the newonExpandedChangeoption.- Strengthens layout tests to assert that stage compaction and scroll restoration finish before the expand/shrink click or Escape handler returns.
Closes #641.