clear out the control if the context is no longer present
This commit is contained in:
parent
de1fcfae7d
commit
8f0302ad73
1 changed files with 6 additions and 1 deletions
|
@ -214,7 +214,12 @@ export class SideBySideEditorControl implements ISideBySideEditorControl, IVerti
|
|||
|
||||
// Up to date context for all title controls
|
||||
POSITIONS.forEach(position => {
|
||||
this.getTitleAreaControl(position).setContext(this.stacks.groupAt(position));
|
||||
const titleAreaControl = this.getTitleAreaControl(position);
|
||||
const context = this.stacks.groupAt(position);
|
||||
titleAreaControl.setContext(context);
|
||||
if (!context) {
|
||||
titleAreaControl.refresh(); // clear out the control if the context is no longer present
|
||||
}
|
||||
});
|
||||
|
||||
// Refresh / update if group is visible and has a position
|
||||
|
|
Loading…
Reference in a new issue