From 899caf94497e22ab8d6a59f695d3805999ab2e4c Mon Sep 17 00:00:00 2001 From: Alanna Scott Date: Tue, 18 Apr 2017 23:24:04 -0700 Subject: [PATCH] [sql-lab] fix scrolling in left hand panel for table meta data (#2641) * fix scrolling in left hand panel for table meta data * add height prop * this prop is not used --- .../SqlLab/components/SqlEditor.jsx | 2 +- .../SqlLab/components/SqlEditorLeftBar.jsx | 159 +++++++++--------- 2 files changed, 83 insertions(+), 78 deletions(-) diff --git a/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx b/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx index f1af66653f..4c32afabb0 100644 --- a/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx +++ b/superset/assets/javascripts/SqlLab/components/SqlEditor.jsx @@ -194,7 +194,7 @@ class SqlEditor extends React.PureComponent { > -
-
- ( -
- Database: {o.label} -
- )} - mutator={this.dbMutator.bind(this)} - placeholder="Select a database" - /> -
-
+
+
+ ( +
+ Database: {o.label} +
+ )} + mutator={this.dbMutator.bind(this)} + placeholder="Select a database" + /> +
+
+ ( -
- Schema: {o.label} -
- )} - isLoading={this.state.schemaLoading} + name="select-table" + ref="selectTable" + isLoading={this.state.tableLoading} + value={this.state.tableName} + placeholder={`Add a table (${this.state.tableOptions.length})`} autosize={false} - onChange={this.changeSchema.bind(this)} + onChange={this.changeTable.bind(this)} + filterOptions={this.state.filterOptions} + options={this.state.tableOptions} + /> + } + {!this.props.queryEditor.schema && + - } - {!this.props.queryEditor.schema && -