Skip to content

Commit

Permalink
Work around a resizing issue. (getredash#3412)
Browse files Browse the repository at this point in the history
* Work around a resizing issue.

Fix getredash#3353.

* Add comment to remove this when we delete Angular.

Co-Authored-By: jezdez <[email protected]>
  • Loading branch information
jezdez authored and chriszs committed Feb 19, 2019
1 parent e23e750 commit b0737c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/app/components/QueryEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ class QueryEditor extends React.Component {
localOptions.set('liveAutocomplete', state);
}

componentDidUpdate = () => {
// ANGULAR_REMOVE_ME Work-around for a resizing issue, see https://github.com/getredash/redash/issues/3353
const { editor } = this.refEditor.current;
editor.resize();
};

render() {
// eslint-disable-next-line react/prop-types
const modKey = this.props.KeyboardShortcuts.modKey;
Expand Down

0 comments on commit b0737c3

Please sign in to comment.