based on user feedback
This commit is contained in:
SteVen Batten 2020-05-29 11:44:29 -07:00
parent b9d2db5ebe
commit 5bec7163f3
2 changed files with 4 additions and 2 deletions

View file

@ -63,7 +63,6 @@ export class CompositeDragAndDrop implements ICompositeDragAndDrop {
}
this.viewDescriptorService.moveViewContainerToLocation(currentContainer, this.targetContainerLocation, this.getTargetIndex(targetCompositeId, before));
this.openComposite(currentContainer.id);
}
}

View file

@ -209,7 +209,10 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
for (const panel of panels) {
const cachedPanel = this.getCachedPanels().filter(({ id }) => id === panel.id)[0];
const activePanel = this.getActivePanel();
const isActive = activePanel?.getId() === panel.id || (!activePanel && this.getLastActivePanelId() === panel.id);
const isActive =
activePanel?.getId() === panel.id ||
(!activePanel && this.getLastActivePanelId() === panel.id) ||
(this.extensionsRegistered && this.compositeBar.getVisibleComposites().length === 0);
if (isActive || !this.shouldBeHidden(panel.id, cachedPanel)) {