Skip to content

Commit 20aac12

Browse files
committed
add automaticLayout:true to playground monaco
1 parent 6e3b234 commit 20aac12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

static/playground.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function PlaygroundApp() {
4646
gap: 0.5em;
4747
}
4848
49-
.mcontainer {
49+
.mcontainer {
5050
background: #1e1e1e;
5151
h2 {
5252
margin: 0.1em;
@@ -117,6 +117,7 @@ function PlaygroundApp() {
117117
</html>
118118
`,
119119
language: "html",
120+
automaticLayout: true,
120121
});
121122
const css = monaco.editor.create(this.cssbox, {
122123
value: dedent`
@@ -137,6 +138,7 @@ function PlaygroundApp() {
137138
}
138139
`,
139140
language: "css",
141+
automaticLayout: true,
140142
});
141143
const js = monaco.editor.create(this.jsbox, {
142144
value: dedent`
@@ -161,6 +163,7 @@ function PlaygroundApp() {
161163
}
162164
`,
163165
language: "javascript",
166+
automaticLayout: true,
164167
});
165168

166169
const recompile = async () => {

0 commit comments

Comments
 (0)