Skip to content

Commit bee5996

Browse files
committed
works better now
1 parent 43a51c0 commit bee5996

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎v3/js/opt-office-mix.js‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,12 @@ function officeMixEnterViewMode(firstTime) {
143143
setToggleOptions(savedAppState);
144144
if (savedAppState.code) {
145145
pyInputSetValue(savedAppState.code);
146+
executeCodeFromScratch();
146147
}
147148
}
148149
}
149150
});
150151

151-
executeCodeFromScratch(); // unconditionally execute since it's more reliable
152-
153152
// on second thought, don't hide this
154153
//$("#toggleModebtn").hide();
155154
}
@@ -249,10 +248,10 @@ $(document).ready(function() {
249248
extraKeys: {Tab: function(cm) {cm.replaceSelection(" ", "end");}}
250249
});
251250

252-
pyInputCodeMirror.setSize(null, '350px');
251+
pyInputCodeMirror.setSize(null, '300px');
253252
}
254253
else {
255-
initAceEditor(350);
254+
initAceEditor(300);
256255
}
257256

258257
// no frills footer
@@ -300,5 +299,5 @@ $(document).ready(function() {
300299
});
301300
});
302301

303-
pyInputSetValue('x = "world"\nprint("hello " + x)')
302+
pyInputSetValue('x = "world"\nprint("hello " + x)'); // set default
304303
});

0 commit comments

Comments
 (0)