fix: fix panels that can't be expanded after collapse
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user