Skip to content

Commit

Permalink
Fix resize observer
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Aug 14, 2020
1 parent fbe3e4c commit 10328ef
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/vs/workbench/contrib/webview/browser/webviewView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,10 @@ class WebviewViewPane extends ViewPane {
});

this._register(toDisposable(() => {
this._resizeObserver.unobserve();
this._resizeObserver.disconnect();
}));
this._resizeObserver.observe(container);
}

// if (this._webview) {
// this._webview.claim(this);
// this._webview.layoutWebviewOverElement(container);
// }
}

protected layoutBody(height: number, width: number): void {
Expand Down

0 comments on commit 10328ef

Please sign in to comment.