Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 4fa53de

Browse files
committed
Make all html align vertical
1 parent 2267a1c commit 4fa53de

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

runestone/activecode/js/activecode.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,13 +1330,15 @@ HTMLActiveCode.prototype.runProg = function () {
13301330
};
13311331

13321332
HTMLActiveCode.prototype.init = function(opts) {
1333+
opts.alignVertical = true;
13331334
ActiveCode.prototype.init.apply(this,arguments);
13341335
this.code = $('<textarea />').html(this.origElem.innerHTML).text();
13351336
$(this.runButton).text('Render');
13361337
this.editor.setValue(this.code);
13371338
};
13381339

13391340
HTMLActiveCode.prototype.createOutput = function () {
1341+
this.alignVertical = true;
13401342
var outDiv = document.createElement("div");
13411343
$(outDiv).addClass("ac_output");
13421344
if(this.alignVertical) {

0 commit comments

Comments
 (0)