Grace Guo
2017-09-12 12:06:22 -07:00
committed by Maxime Beauchemin
parent 3c0e85e2c0
commit 2d6b9422c6
3 changed files with 14 additions and 1 deletions

View File

@@ -67,6 +67,10 @@ class SqlEditor extends React.PureComponent {
southPaneHeight: height - this.refs.ace.clientHeight,
height,
});
if (this.refs.ace.clientHeight) {
this.props.actions.persistEditorHeight(this.props.queryEditor, this.refs.ace.clientHeight);
}
}
setQueryEditorSql(sql) {
this.props.actions.queryEditorSetSql(this.props.queryEditor, sql);
@@ -191,7 +195,7 @@ class SqlEditor extends React.PureComponent {
}
render() {
const height = this.sqlEditorHeight();
const defaultNorthHeight = 200;
const defaultNorthHeight = this.props.queryEditor.height || 200;
return (
<div
className="SqlEditor"