Skip to content

Commit

Permalink
Force view to 100% height of containing iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Jun 27, 2023
1 parent 6812d72 commit 9565b8d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) {
// which isn't a requirement in auto resize mode.
enableResizing ? 'min-height:0!important;' : ''
}}body{position:relative; ${
canvasMode === 'view' ? 'cursor: pointer;' : ''
canvasMode === 'view'
? 'cursor: pointer; height: 100vh'
: ''
}}}`
}</style>
{ children }
Expand Down

0 comments on commit 9565b8d

Please sign in to comment.