Skip to content

Commit 2b8f9c2

Browse files
author
Philip Guo
committed
moar!
1 parent e8f385d commit 2b8f9c2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

PyTutorGAE/js/edu-python-tutor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ $(document).ready(function() {
154154
$('#executeBtn').attr('disabled', false);
155155
}
156156
else {
157-
createVisualization(traceData, pyInputCodeMirror.getValue());
157+
createVisualization(traceData, pyInputCodeMirror.getValue(), $('#pyOutputPane'));
158158
}
159159
},
160160
"json");

PyTutorGAE/js/edu-python.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ var instrLimitReached = false;
6666

6767

6868

69-
function createVisualization(traceData, inputCode) {
69+
function createVisualization(traceData, inputCode, domRoot) {
70+
71+
7072
// set gross globals, then let jQuery BBQ take care of the rest
7173
curTrace = traceData;
7274
curInputCode = inputCode;
@@ -1197,9 +1199,7 @@ function renderPyCodeOutput(codeStr) {
11971199
codeOutputLines.push(n);
11981200
});
11991201

1200-
// re-create a pyCodeOutputDiv from scratch each time to prevent weird
1201-
// scrolling bugs ... ugh hacky
1202-
$('#pyCodeOutputDivWrapper').html('<div id="pyCodeOutputDiv"/>');
1202+
$('#pyCodeOutputDiv').empty();
12031203

12041204

12051205
// maps codeOutputLines to both table columns

PyTutorGAE/tutor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152

153153
<center>
154154

155-
<div id="pyCodeOutputDivWrapper">
155+
<div id="pyCodeOutputDiv">
156156
</div>
157157

158158
<div id="editCodeLinkDiv">

0 commit comments

Comments
 (0)