We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac19a5 commit 8ff2f65Copy full SHA for 8ff2f65
1 file changed
docs/playground.html
@@ -311,9 +311,9 @@ <h1>Playground</h1>
311
312
// Editor host div
313
const div = document.createElement('div');
314
- div.style.cssText = 'position:absolute;inset:0';
+ div.style.cssText = 'width:100%;height:100%';
315
shadow.appendChild(div);
316
- this.style.cssText = 'display:block;position:absolute;inset:0';
+ this.style.cssText = 'display:block;width:100%;height:100%';
317
318
link.onload = () => {
319
monaco.editor.create(div, {
@@ -339,7 +339,6 @@ <h1>Playground</h1>
339
customElements.define('monaco-editor-wc', MonacoEditorElement);
340
}
341
342
-container.style.cssText = 'position:relative';
343
const el = document.createElement('monaco-editor-wc');
344
container.appendChild(el);
345
`,
0 commit comments