Skip to content

Commit c0868ec

Browse files
authored
Disallow scrolling in editor (codesandbox#370)
* Proper fullscreen for editor * Only make editor fullscreen
1 parent 21efd17 commit c0868ec

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class ContentSplit extends React.PureComponent<Props, State> {
3737
split="vertical"
3838
defaultSize={18 * 16}
3939
minSize={14 * 16}
40-
style={{ top: 0 }}
40+
style={{ position: 'fixed', top: 0, bottom: 0, left: 0, right: 0 }}
4141
onDragStarted={this.startResizing}
4242
onDragFinished={this.stopResizing}
4343
resizerStyle={{ visibility: workspaceHidden ? 'hidden' : 'visible' }}

0 commit comments

Comments
 (0)