Skip to content

Commit

Permalink
fix: prevent editor column overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Apr 15, 2021
1 parent 6a52721 commit ebf6e69
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/assets/javascripts/directives/views/panelResizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit ebf6e69

Please sign in to comment.