fix: fix panels that can't be expanded after collapse

This commit is contained in:
Antonella Sgarlatta
2021-06-19 13:49:21 -03:00
parent 9d258ffcee
commit ebe38eae57
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
@@ -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();

View File

@@ -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;