Skip to content

Commit

Permalink
Work around a resizing issue.
Browse files Browse the repository at this point in the history
Fix #3353.
  • Loading branch information
jezdez committed Feb 7, 2019
1 parent ec475e4 commit bbb4c26
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 @@ -217,6 +217,12 @@ class QueryEditor extends React.Component {
localOptions.set('liveAutocomplete', state);
};

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

render() {
const modKey = KeyboardShortcuts.modKey;

Expand Down

0 comments on commit bbb4c26

Please sign in to comment.