fix: prevent editor column overflow

This commit is contained in:
Baptiste Grob
2021-04-15 12:57:30 +02:00
parent 6a52721ea7
commit ebf6e69ef7

View File

@@ -313,9 +313,7 @@ class PanelResizerCtrl implements PanelResizerScope {
} }
if (Math.round(width + this.lastLeft) === Math.round(parentRect.width)) { if (Math.round(width + this.lastLeft) === Math.round(parentRect.width)) {
this.panel.style.width = `calc(100% - ${this.lastLeft}px)`; this.panel.style.width = `calc(100% - ${this.lastLeft}px)`;
this.panel.style.flexBasis = `calc(100% - ${this.lastLeft}px)`;
} else { } else {
this.panel.style.flexBasis = width + 'px';
this.panel.style.width = width + 'px'; this.panel.style.width = width + 'px';
} }
this.lastWidth = width; this.lastWidth = width;