fix editor overflow

This commit is contained in:
catarak 2016-07-12 15:58:11 -04:00
parent d96e7132dc
commit b4ba44a67e
2 changed files with 5 additions and 3 deletions

View file

@ -11,7 +11,8 @@ class Editor extends React.Component {
value: this.props.file.content,
lineNumbers: true,
styleActiveLine: true,
mode: 'javascript'
mode: 'javascript',
lineWrapping: true
});
this._cm.on('change', () => { // eslint-disable-line
// this.props.updateFileContent('sketch.js', this._cm.getValue());

View file

@ -6,12 +6,13 @@
}
.editor-holder {
flex-grow: 1;
flex: 1 0 0;
max-width: 45%;
height: 100%;
}
.preview-frame {
flex-grow: 1;
flex: 1 0 0;
}
.toolbar {