diff --git a/media/vscode.css b/media/vscode.css index 9fdfcb4..6bc70bd 100644 --- a/media/vscode.css +++ b/media/vscode.css @@ -117,10 +117,17 @@ iframe { outline-color: var(--vscode-focusBorder); } +.content { + position: relative; +} + .content iframe { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; display: table-cell; - width: 100%; - height: 100%; background: white; /* Browsers default to a white background */ } diff --git a/src/editorPreview/webviewComm.ts b/src/editorPreview/webviewComm.ts index c051f6b..0b766c6 100644 --- a/src/editorPreview/webviewComm.ts +++ b/src/editorPreview/webviewComm.ts @@ -84,7 +84,7 @@ export class WebviewComm extends Disposable { URLExt: string, connection: Connection = this.currentConnection, hostURI?: vscode.Uri, - windowId?: number | undefined, + windowId?: number | undefined ): Promise { if (URLExt.length > 0 && URLExt[0] == '/') { URLExt = URLExt.substring(1); @@ -222,11 +222,11 @@ export class WebviewComm extends Disposable { -->