File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,8 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
187
187
private set sidebarWidth ( value : number ) {
188
188
const editorCountForWidth = this . editorGroupService . getGroupOrientation ( ) === 'vertical' ? this . editorGroupService . getStacksModel ( ) . groups . length : 1 ;
189
189
const panelMinWidth = this . partService . getPanelPosition ( ) === Position . RIGHT && this . partService . isVisible ( Parts . PANEL_PART ) ? MIN_PANEL_PART_WIDTH : 0 ;
190
- const maxSidebarWidth = Math . max ( this . partLayoutInfo . sidebar . minWidth , this . workbenchSize . width - this . activitybarWidth - editorCountForWidth * MIN_EDITOR_PART_WIDTH - panelMinWidth ) ;
191
- this . _sidebarWidth = Math . min ( maxSidebarWidth , Math . max ( this . partLayoutInfo . sidebar . minWidth , value ) ) ;
190
+ const maxSidebarWidth = this . workbenchSize . width - this . activitybarWidth - editorCountForWidth * MIN_EDITOR_PART_WIDTH - panelMinWidth ;
191
+ this . _sidebarWidth = Math . max ( this . partLayoutInfo . sidebar . minWidth , Math . min ( maxSidebarWidth , value ) ) ;
192
192
}
193
193
194
194
private getPartLayoutInfo ( ) : PartLayoutInfo {
You can’t perform that action at this time.
0 commit comments