Skip to content

Commit 8ff2f65

Browse files
committed
playground: fix web component sample layout
1 parent 0ac19a5 commit 8ff2f65

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/playground.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ <h1>Playground</h1>
311311
312312
// Editor host div
313313
const div = document.createElement('div');
314-
div.style.cssText = 'position:absolute;inset:0';
314+
div.style.cssText = 'width:100%;height:100%';
315315
shadow.appendChild(div);
316-
this.style.cssText = 'display:block;position:absolute;inset:0';
316+
this.style.cssText = 'display:block;width:100%;height:100%';
317317
318318
link.onload = () => {
319319
monaco.editor.create(div, {
@@ -339,7 +339,6 @@ <h1>Playground</h1>
339339
customElements.define('monaco-editor-wc', MonacoEditorElement);
340340
}
341341
342-
container.style.cssText = 'position:relative';
343342
const el = document.createElement('monaco-editor-wc');
344343
container.appendChild(el);
345344
`,

0 commit comments

Comments
 (0)