diff --git a/src/webview.ts b/src/webview.ts index 1ecffb7..13f0d2b 100644 --- a/src/webview.ts +++ b/src/webview.ts @@ -170,7 +170,10 @@ export class Webview { Number(debugOrHandle), null, ); - this.size = { width: 1024, height: 768, hint: SizeHint.NONE }; + + if (size !== undefined) { + this.size = size; + } } /**