提交 500a35cf 编写于 作者: R Ramya Achutha Rao

Initial size is set to infinity!! Fixes #55461

上级 65991760
......@@ -377,9 +377,8 @@ export abstract class ViewContainerViewlet extends PanelViewlet implements IView
private computeInitialSizes(): { [id: string]: number } {
let sizes = {};
if (this.dimension) {
let totalWeight = 0;
for (const viewDescriptor of this.viewsModel.visibleViewDescriptors) {
sizes[viewDescriptor.id] = this.dimension.height * (viewDescriptor.weight || 20) / totalWeight;
sizes[viewDescriptor.id] = this.dimension.height * (viewDescriptor.weight || 20) / 100;
}
}
return sizes;
......
......@@ -132,7 +132,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
container: VIEW_CONTAINER,
ctor: EnabledExtensionsView,
when: ContextKeyExpr.not('searchExtensions'),
weight: 30,
weight: 40,
canToggleVisibility: true,
order: 1
};
......@@ -181,7 +181,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
container: VIEW_CONTAINER,
ctor: DefaultRecommendedExtensionsView,
when: ContextKeyExpr.and(ContextKeyExpr.not('searchExtensions'), ContextKeyExpr.has('defaultRecommendedExtensions')),
weight: 70,
weight: 60,
order: 2,
canToggleVisibility: true
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册