File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,6 @@ class PreviewFrame extends React.Component {
200
200
this . addLoopProtect ( sketchDoc ) ;
201
201
sketchDoc . head . insertBefore ( consoleErrorsScript , sketchDoc . head . firstElement ) ;
202
202
203
- if ( this . props . forceFullWidth ) {
204
- const resizeScript = sketchDoc . createElement ( 'style' ) ;
205
- resizeScript . innerHTML = '.p5Canvas { width: 100% !important; height: auto !important }' ;
206
- sketchDoc . head . appendChild ( resizeScript ) ;
207
- }
208
203
209
204
return `<!DOCTYPE HTML>\n${ sketchDoc . documentElement . outerHTML } ` ;
210
205
}
@@ -389,13 +384,11 @@ PreviewFrame.propTypes = {
389
384
clearConsole : PropTypes . func . isRequired ,
390
385
cmController : PropTypes . shape ( {
391
386
getContent : PropTypes . func
392
- } ) ,
393
- forceFullWidth : PropTypes . bool
387
+ } )
394
388
} ;
395
389
396
390
PreviewFrame . defaultProps = {
397
391
fullView : false ,
398
- forceFullWidth : false ,
399
392
cmController : { }
400
393
} ;
401
394
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ const MobileSketchView = (props) => {
67
67
content = { selectedFile . content }
68
68
69
69
isPlaying
70
- forceFullWidth
71
70
isAccessibleOutputPlaying = { ide . isAccessibleOutputPlaying }
72
71
previewIsRefreshing = { ide . previewIsRefreshing }
73
72
You can’t perform that action at this time.
0 commit comments