Move layout and focus ot base class

This commit is contained in:
Matt Bierner
2018-02-20 16:05:12 -08:00
parent 7cbbf47f95
commit 5eeed6d275
4 changed files with 15 additions and 27 deletions

View File

@@ -151,14 +151,8 @@ class WebviewEditor extends BaseWebviewEditor {
public layout(dimension: Dimension): void {
if (this._webview) {
this.doUpdateContainer();
this._webview.layout();
}
}
public focus() {
if (this._webview) {
this._webview.focus();
}
super.layout(dimension);
}
public dispose(): void {