@@ -23,7 +23,6 @@ import CodeEditor from 'app/components/sandbox/CodeEditor';
2323import Preview from 'app/components/sandbox/Preview' ;
2424
2525import Header from './Header' ;
26- import Relative from '../../../../components/Relative' ;
2726
2827type Props = {
2928 sandbox : Sandbox ,
@@ -39,9 +38,6 @@ type State = {
3938} ;
4039
4140const FullSize = styled . div `
42- display: flex;
43- flex-direction: column;
44- flex: auto;
4541 height: 100%;
4642 width: 100%;
4743 pointer-events: ${ props => props . inactive ? 'none' : 'all' } ;
@@ -164,27 +160,25 @@ class EditorPreview extends React.PureComponent {
164160 userActions = { userActions }
165161 user = { user }
166162 />
167- < div style = { { height : '100%' , width : '100%' , position : 'relative' } } >
168- < SplitPane
169- onDragStarted = { this . startResizing }
170- onDragFinished = { this . stopResizing }
171- split = "vertical"
172- defaultSize = "50%"
173- minSize = { 360 }
174- primary = "second"
175- paneStyle = { { height : '100%' } }
176- pane1Style = { { display : sandbox . showEditor ? 'block' : 'none' } }
177- pane2Style = { {
178- display : sandbox . showPreview ? 'block' : 'none' ,
179- minWidth : sandbox . showPreview && ! sandbox . showEditor
180- ? '100%'
181- : 'inherit' ,
182- } }
183- >
184- { sandbox . showEditor && EditorPane }
185- { PreviewPane }
186- </ SplitPane >
187- </ div >
163+ < SplitPane
164+ onDragStarted = { this . startResizing }
165+ onDragFinished = { this . stopResizing }
166+ split = "vertical"
167+ defaultSize = "50%"
168+ minSize = { 360 }
169+ primary = "second"
170+ paneStyle = { { height : '100%' } }
171+ pane1Style = { { display : sandbox . showEditor ? 'block' : 'none' } }
172+ pane2Style = { {
173+ display : sandbox . showPreview ? 'block' : 'none' ,
174+ minWidth : sandbox . showPreview && ! sandbox . showEditor
175+ ? '100%'
176+ : 'inherit' ,
177+ } }
178+ >
179+ { sandbox . showEditor && EditorPane }
180+ { PreviewPane }
181+ </ SplitPane >
188182 </ FullSize >
189183 ) ;
190184 }
0 commit comments