fix grid resizing interation with editor (#2427)

This commit is contained in:
Anthony Dresser
2018-09-05 17:32:58 -07:00
committed by GitHub
parent 534bbe9b9a
commit f147d799e0
7 changed files with 109 additions and 51 deletions

View File

@@ -36,6 +36,7 @@ export interface IPanelTab {
interface IInternalPanelTab extends IPanelTab {
header: Builder;
label: Builder;
dispose(): void;
}
const defaultOptions: IPanelOptions = {
@@ -133,6 +134,11 @@ export class TabbedPanel extends Disposable implements IThemable {
this.$tabList.append(tabHeaderElement);
tab.header = tabHeaderElement;
tab.label = tabLabel;
tab.dispose = () => {
tab.header.dispose();
tab.label.dispose();
};
this._register(tab);
}
public showTab(id: PanelTabIdentifier): void {