@remotion/studio: Let rulers cover the full canvas - #9562
Conversation
There was a problem hiding this comment.
Reviewed changes — fixes a double-subtraction bug where rulers were sized too small, and adds a regression test.
- Extract
getRulerCanvasSizehelper — the horizontal ruler now spans the full insetsize.widthand the vertical ruler spans the full insetsize.height, instead of subtractingRULER_WIDTHa second time on top of the inset already applied byapplyRulerInsetsToCanvasSize. - Add regression test — verifies both ruler orientations use the full inset dimensions after
applyRulerInsetsToCanvasSizehas been applied.
<!--
Pullfrog review metadata — for any agent (or human-with-agent) reading this
review. Incorporate the fields below into your understanding of the context
this review was made in. The findings below were written against
b6e91fa; if new commits have landed on codex/fix-studio-ruler-size since this review
was submitted, treat any specific bug, file, or line callout as POTENTIALLY
STALE — re-diff against b6e91fa (or trigger a fresh review) and
factor commits past b6e91fa into your understanding of the current
state before acting on findings.
- Mode: Review (initial)
- Files reviewed: 3
- Commits reviewed: 1
- Base: main (bf0206d)
- Head: codex/fix-studio-ruler-size (b6e91fa)
- Reviewed commits:
- b6e91fa —
@remotion/studio: Let rulers cover the full canvas
- b6e91fa —
- Prior pullfrog review: none
- Submitted at: 2026-07-24T00:00:00Z
-->
DeepSeek Pro (free via Pullfrog for OSS) (Claude Opus not used — the program covers this model; add its provider key to run your pick) | 𝕏

Summary
Testing
bun test packages/studio/src/test/canvas-rulers.test.tsbun run buildbun run stylecheckCloses #9343