[Sql Lab] Fix query results display at the bottom of screen (#4246)

This commit is contained in:
Grace Guo
2018-01-19 10:19:54 -08:00
committed by GitHub
parent 1c56319be4
commit 7b76356182
4 changed files with 24 additions and 10 deletions

View File

@@ -144,7 +144,8 @@ export default class ResultSet extends React.PureComponent {
}
render() {
const query = this.props.query;
const height = this.props.search ? this.props.height - SEARCH_HEIGHT : this.props.height;
const height = Math.max(0,
(this.props.search ? this.props.height - SEARCH_HEIGHT : this.props.height));
let sql;
if (this.props.showSql) {