Skip to content

Commit

Permalink
fix: fix panels that can't be expanded after collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed Jun 19, 2021
1 parent 9d258ff commit ebe38ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/assets/javascripts/directives/views/panelResizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class PanelResizerCtrl implements PanelResizerScope {
return;
}
this.resizerColumn = this.$element[0];
this.currentMinWidth = this.minWidth || this.resizerColumn.offsetWidth;
this.currentMinWidth = this.minWidth || (this.resizerColumn.offsetWidth + 2);
this.pressed = false;
this.startWidth = this.panel.scrollWidth;
this.lastDownX = 0;
Expand Down Expand Up @@ -194,6 +194,7 @@ class PanelResizerCtrl implements PanelResizerScope {
this.setWidth(this.widthBeforeLastDblClick || this.defaultWidth);
} else {
this.widthBeforeLastDblClick = this.lastWidth;
console.log(this.currentMinWidth);
this.setWidth(this.currentMinWidth);
}
this.finishSettingWidth();
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ $footer-height: 32px;
top: 0;
right: 0;
z-index: $z-index-panel-resizer;
width: 2px;
width: 4px;
height: 100%;
position: absolute;
cursor: col-resize;
Expand Down

0 comments on commit ebe38ea

Please sign in to comment.