Skip to content

Commit

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

Fix #3353.

* Add comment to remove this when we delete Angular.

Co-Authored-By: jezdez <jannis@leidel.info>
  • Loading branch information
jezdez authored and kravets-levko committed Feb 7, 2019
1 parent 029bee1 commit c49dccf
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 = () => {
// 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() {
const modKey = KeyboardShortcuts.modKey;

Expand Down

0 comments on commit c49dccf

Please sign in to comment.