提交 e009b306 编写于 作者: I isidor

panel: make panel height limit absolute

上级 92a5f52d
......@@ -19,9 +19,9 @@ import {IEventService} from 'vs/platform/event/common/event';
const DEFAULT_MIN_PART_WIDTH = 170;
const DEFAULT_MIN_PANEL_PART_HEIGHT = 170;
const DEFAULT_MIN_EDITOR_PART_HEIGHT = 170;
const HIDE_SIDEBAR_WIDTH_THRESHOLD = 50;
const HIDE_PANEL_HEIGHT_THRESHOLD = 50;
const PANEL_HEIGHT_SCREEN_LIMIT = 0.8;
const LAYOUT_RELATED_PREFERENCES = [
Preferences.THEME
......@@ -309,7 +309,7 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
if (isPanelHidden) {
panelHeight = 0;
} else if (this.panelHeight > 0) {
panelHeight = Math.min(sidebarSize.height * PANEL_HEIGHT_SCREEN_LIMIT, Math.max(this.computedStyles.panel.minHeight, this.panelHeight));
panelHeight = Math.min(sidebarSize.height - DEFAULT_MIN_EDITOR_PART_HEIGHT, Math.max(this.computedStyles.panel.minHeight, this.panelHeight));
} else {
panelHeight = sidebarSize.height * 0.4;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册