fix connection dialog scroll issue (#12956)

This commit is contained in:
Alan Ren
2020-10-16 11:09:30 -07:00
committed by GitHub
parent 767465edbf
commit 49983a6f05
3 changed files with 20 additions and 18 deletions

View File

@@ -107,6 +107,10 @@ export class TabbedPanel extends Disposable {
this._register(DOM.addDisposableListener(this.header, DOM.EventType.FOCUS, e => this.focusCurrentTab()));
}
public get element(): HTMLElement {
return this.parent;
}
public dispose() {
this.header.remove();
this.tabList.remove();
@@ -250,7 +254,8 @@ export class TabbedPanel extends Disposable {
tab.tab.view.onShow();
}
if (this._currentDimensions) {
this._layoutCurrentTab(new DOM.Dimension(this._currentDimensions.width, this._currentDimensions.height - this.headersize));
const tabHeight = this._currentDimensions.height - (this._headerVisible ? this.headersize : 0);
this._layoutCurrentTab(new DOM.Dimension(this._currentDimensions.width, tabHeight));
}
}