提交 e8d9892d 编写于 作者: S SteVen Batten

panel pref dimensions

fixes #82018
上级 b1190cb5
......@@ -60,13 +60,13 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
readonly snap = true;
get preferredHeight(): number | undefined {
const sidebarDimension = assertIsDefined(this.layoutService.getDimension(Parts.SIDEBAR_PART));
return sidebarDimension.height * 0.4;
// Don't worry about titlebar or statusbar visibility
// The difference is minimal and keeps this function clean
return this.layoutService.dimension.height * 0.4;
}
get preferredWidth(): number | undefined {
const statusbarDimension = assertIsDefined(this.layoutService.getDimension(Parts.STATUSBAR_PART));
return statusbarDimension.width * 0.4;
return this.layoutService.dimension.width * 0.4;
}
//#endregion
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册