KamoCRM

Fit to Width calculates actual container width instead of resetting to zoom 1

Fixkamo-internal
Shipped
April 12, 2026 at 5:54 PM UTC
Author
kamo
Commit
3e5e1c5

Reads **************** (which accounts for the stable scrollbar gutter) and the page's natural width via **************** then computes fitZoom = (availableWidth - 32) / naturalPageWidth so the PDF page fills the visible area with 16px breathing room on each side.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing