Skip to content

fix(customiser): don't paint preview before scale is measured - #11

Merged
markmybytes merged 1 commit into
mainfrom
fix/preview-scale-flash
Oct 21, 2026
Merged

markmybytes merged 1 commit into
mainfrom
fix/preview-scale-flash

Conversation

@markmybytes

Copy link
Copy Markdown
Owner

colW starts at 0, so factor was 1 for the first painted frame and the ResizeObserver's post-paint callback then snapped the stage down — a full-size flash on every customiser load. The stage now renders as an invisible full-column placeholder (stable height) until the first measurement lands, with overflow-hidden on the measuring wrapper so the unmeasured full-width inner can't trigger a horizontal scrollbar.

colW starts at 0, so factor was 1 for the first painted frame and the
ResizeObserver's post-paint callback then snapped the stage down — a
full-size flash on every customiser load. The stage now renders as an
invisible full-column placeholder (stable height) until the first
measurement lands, with overflow-hidden on the measuring wrapper so the
unmeasured full-width inner can't trigger a horizontal scrollbar.
@markmybytes
markmybytes merged commit 3537f87 into main Oct 21, 2026
2 checks passed
@markmybytes
markmybytes deleted the fix/preview-scale-flash branch October 21, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant