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 {
200200 this . addLoopProtect ( sketchDoc ) ;
201201 sketchDoc . head . insertBefore ( consoleErrorsScript , sketchDoc . head . firstElement ) ;
202202
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- }
208203
209204 return `<!DOCTYPE HTML>\n${ sketchDoc . documentElement . outerHTML } ` ;
210205 }
@@ -389,13 +384,11 @@ PreviewFrame.propTypes = {
389384 clearConsole : PropTypes . func . isRequired ,
390385 cmController : PropTypes . shape ( {
391386 getContent : PropTypes . func
392- } ) ,
393- forceFullWidth : PropTypes . bool
387+ } )
394388} ;
395389
396390PreviewFrame . defaultProps = {
397391 fullView : false ,
398- forceFullWidth : false ,
399392 cmController : { }
400393} ;
401394
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ const MobileSketchView = (props) => {
6767 content = { selectedFile . content }
6868
6969 isPlaying
70- forceFullWidth
7170 isAccessibleOutputPlaying = { ide . isAccessibleOutputPlaying }
7271 previewIsRefreshing = { ide . previewIsRefreshing }
7372
You can’t perform that action at this time.
0 commit comments