@@ -247,7 +247,7 @@ function Iframe( {
247247 }
248248 } , [ containerWidth , isZoomedOut ] ) ;
249249
250- const outerContainerWidth = Math . max (
250+ const scaleContainerWidth = Math . max (
251251 initialContainerWidth . current ,
252252 containerWidth
253253 ) ;
@@ -357,7 +357,7 @@ function Iframe( {
357357 scale === 'default'
358358 ? ( Math . min ( containerWidth , maxWidth ) -
359359 parseInt ( frameSize ) * 2 ) /
360- outerContainerWidth
360+ scaleContainerWidth
361361 : scale
362362 ) ;
363363
@@ -379,8 +379,8 @@ function Iframe( {
379379 `${ containerWidth } px`
380380 ) ;
381381 iframeDocument . documentElement . style . setProperty (
382- '--wp-block-editor-iframe-zoom-out-outer -container-width' ,
383- `${ outerContainerWidth } px`
382+ '--wp-block-editor-iframe-zoom-out-scale -container-width' ,
383+ `${ scaleContainerWidth } px`
384384 ) ;
385385
386386 return ( ) => {
@@ -400,7 +400,7 @@ function Iframe( {
400400 '--wp-block-editor-iframe-zoom-out-container-width'
401401 ) ;
402402 iframeDocument . documentElement . style . removeProperty (
403- '--wp-block-editor-iframe-zoom-out-outer -container-width'
403+ '--wp-block-editor-iframe-zoom-out-scale -container-width'
404404 ) ;
405405 } ;
406406 } , [
@@ -412,7 +412,7 @@ function Iframe( {
412412 containerWidth ,
413413 windowInnerWidth ,
414414 isZoomedOut ,
415- outerContainerWidth ,
415+ scaleContainerWidth ,
416416 ] ) ;
417417
418418 // Make sure to not render the before and after focusable div elements in view
@@ -502,8 +502,8 @@ function Iframe( {
502502 isZoomedOut && 'is-zoomed-out'
503503 ) }
504504 style = { {
505- '--wp-block-editor-iframe-zoom-out-outer -container-width' :
506- isZoomedOut && `${ outerContainerWidth } px` ,
505+ '--wp-block-editor-iframe-zoom-out-scale -container-width' :
506+ isZoomedOut && `${ scaleContainerWidth } px` ,
507507 } }
508508 >
509509 { iframe }
0 commit comments