Skip to content

Commit

Permalink
Block Editor Iframe: Support displaying fixed elements by only applyi…
Browse files Browse the repository at this point in the history
…ng scale when it is a non-1 value
  • Loading branch information
andrewserong committed Jan 6, 2023
1 parent fb30e9a commit 5cffb87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ function Iframe(
frameSize
}px`,
marginTop: frameSize,
transform: `scale( ${ scale } )`,
transform:
scale !== 1
? `scale( ${ scale } )`
: undefined,
} }
inert={ readonly ? 'true' : undefined }
>
Expand Down

0 comments on commit 5cffb87

Please sign in to comment.