[sql lab] using react-split-pane (#3363)

* [sql lab] using react-split-pane

* padding
This commit is contained in:
Maxime Beauchemin
2017-08-27 15:01:24 -07:00
committed by GitHub
parent 2d237fe2ef
commit aff7a82664
6 changed files with 81 additions and 82 deletions

View File

@@ -32,6 +32,7 @@ const propTypes = {
sql: PropTypes.string.isRequired,
tables: PropTypes.array,
queryEditor: PropTypes.object.isRequired,
height: PropTypes.string,
};
const defaultProps = {
@@ -125,8 +126,7 @@ class AceEditorWrapper extends React.PureComponent {
theme="github"
onLoad={this.onEditorLoad.bind(this)}
onBlur={this.onBlur.bind(this)}
minLines={12}
maxLines={12}
height={this.props.height}
onChange={this.textChange.bind(this)}
width="100%"
editorProps={{ $blockScrolling: true }}