Skip to content

Commit

Permalink
Comment about bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Oct 11, 2024
1 parent b92e865 commit 6be7c86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ function Iframe( {
iframeDocument.documentElement.classList.add( 'is-zoomed-out' );

const maxWidth = 750;
// Note: When we initialize the zoom out when the canvas is smaller,
// reflow happens when the canvas area becomes larger

// This scaling calculation has to happen within the JS because CSS calc() can
// only divide and multiply by a unitless value. I.e. calc( 100px / 2 ) is valid
// but calc( 100px / 2px ) is not.
Expand Down

0 comments on commit 6be7c86

Please sign in to comment.