From ebf6e69ef7de5c3a77a41324cbbd60316e39a452 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Thu, 15 Apr 2021 12:57:30 +0200 Subject: [PATCH] fix: prevent editor column overflow --- app/assets/javascripts/directives/views/panelResizer.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/directives/views/panelResizer.ts b/app/assets/javascripts/directives/views/panelResizer.ts index 67307e618..c39f40743 100644 --- a/app/assets/javascripts/directives/views/panelResizer.ts +++ b/app/assets/javascripts/directives/views/panelResizer.ts @@ -313,9 +313,7 @@ class PanelResizerCtrl implements PanelResizerScope { } if (Math.round(width + this.lastLeft) === Math.round(parentRect.width)) { this.panel.style.width = `calc(100% - ${this.lastLeft}px)`; - this.panel.style.flexBasis = `calc(100% - ${this.lastLeft}px)`; } else { - this.panel.style.flexBasis = width + 'px'; this.panel.style.width = width + 'px'; } this.lastWidth = width; @@ -344,8 +342,8 @@ class PanelResizerCtrl implements PanelResizerScope { /** * If an iframe is displayed adjacent to our panel, and the mouse exits over the iframe, - * document[onmouseup] is not triggered because the document is no longer the same over - * the iframe. We add an invisible overlay while resizing so that the mouse context + * document[onmouseup] is not triggered because the document is no longer the same over + * the iframe. We add an invisible overlay while resizing so that the mouse context * remains in our main document. */ addInvisibleOverlay() {