From bbb4c2629b6cabfbcb4dde3781577e90e66fc8b5 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 7 Feb 2019 14:18:59 +0100 Subject: [PATCH] Work around a resizing issue. Fix #3353. --- client/app/components/QueryEditor.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/app/components/QueryEditor.jsx b/client/app/components/QueryEditor.jsx index 714e63d3fd..5acb53d18e 100644 --- a/client/app/components/QueryEditor.jsx +++ b/client/app/components/QueryEditor.jsx @@ -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;