mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix nav section layout (#854)
This commit is contained in:
@@ -217,6 +217,13 @@ export class PanelComponent extends Disposable implements AfterContentInit, OnIn
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the id of the active tab
|
||||||
|
*/
|
||||||
|
public get getActiveTab(): string {
|
||||||
|
return this._activeTab.identifier;
|
||||||
|
}
|
||||||
|
|
||||||
private findAndRemoveTabFromMRU(tab: TabComponent): void {
|
private findAndRemoveTabFromMRU(tab: TabComponent): void {
|
||||||
let mruIndex = this._mru.findIndex(i => i === tab);
|
let mruIndex = this._mru.findIndex(i => i === tab);
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,10 @@ export class DashboardNavSection extends DashboardTab implements OnDestroy, OnCh
|
|||||||
}
|
}
|
||||||
|
|
||||||
public layout() {
|
public layout() {
|
||||||
|
let activeTabId = this._panel.getActiveTab;
|
||||||
|
let localtab = this._tabs.find(i => i.id === activeTabId);
|
||||||
|
this._cd.detectChanges();
|
||||||
|
localtab.layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
public refresh(): void {
|
public refresh(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user