Skip to content

Commit

Permalink
Add an explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Feb 24, 2024
1 parent d4b6f12 commit 02e2f90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ function Iframe( {
{ height: contentHeight, width: contentWidth },
] = useResizeObserver();

// When zoom-out mode is enabled, the iframe is scaled down to fit the
// content within the viewport.
// At 1000px wide, the iframe is scaled to 45%.
// At 400px wide, the iframe is scaled to 90%.
const scale = ! isZoomOutMode
? 1
: calculateScale(
Expand Down

0 comments on commit 02e2f90

Please sign in to comment.