Skip to content

Commit 23cf358

Browse files
save file
1 parent 15fac52 commit 23cf358

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
btn['snippet-editor'] = async function(){
308308

309309
var viewport = await vm.new();
310-
viewport.pos({x:200,y:200});
310+
viewport.pos({x:250,y:200});
311311

312312
var node = document.createElement('snippet-editor');
313313
node.toggleAttribute('component',true);
@@ -344,13 +344,10 @@
344344
var opts = {par:viewport.body};
345345
var snippet_console = await mod.component('snippet-console',attrs,opts);
346346

347-
snippet_console.css.insert_rule([
348-
':host {height:100%;}',
349-
'#root {height:100%}'
350-
]);
347+
snippet_console.css.insert_rule([':host {height:100%;}','#root {height:100%}']);
351348
snippet_console.editor.css.insert_rule([':host {flex:1}','#root {height:100%}']);
352349

353-
snippet_console.ctx = {xyz:123};
350+
snippet_console.ctx = {snippet_console,webcontainer,viewport};
354351

355352
}//snippet-console
356353

0 commit comments

Comments
 (0)