fix DnD orientation for Aux Bar

上级 e814c944
...@@ -608,11 +608,15 @@ export class ViewPaneContainer extends Component implements IViewPaneContainer { ...@@ -608,11 +608,15 @@ export class ViewPaneContainer extends Component implements IViewPaneContainer {
} }
private get orientation(): Orientation { private get orientation(): Orientation {
if (this.viewDescriptorService.getViewContainerLocation(this.viewContainer) === ViewContainerLocation.Sidebar) { switch (this.viewDescriptorService.getViewContainerLocation(this.viewContainer)) {
return Orientation.VERTICAL; case ViewContainerLocation.Sidebar:
} else { case ViewContainerLocation.AuxiliaryBar:
return this.layoutService.getPanelPosition() === Position.BOTTOM ? Orientation.HORIZONTAL : Orientation.VERTICAL; return Orientation.VERTICAL;
case ViewContainerLocation.Panel:
return this.layoutService.getPanelPosition() === Position.BOTTOM ? Orientation.HORIZONTAL : Orientation.VERTICAL;
} }
return Orientation.VERTICAL;
} }
layout(dimension: Dimension): void { layout(dimension: Dimension): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册