Skip to content

Commit 15c81b2

Browse files
committed
position the dialog to better avoid overlap. Take feedback from the trace.
1 parent df5dda1 commit 15c81b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ ExecutionVisualizer.prototype.updateOutput = function(smoothTransition) {
11211121
if (curEntry.question) {
11221122
//alert(curEntry.question.text);
11231123

1124-
$('#'+curEntry.question.div).modal();
1124+
$('#'+curEntry.question.div).modal({position:["25%","50%"]});
11251125
}
11261126

11271127
// render VCR controls:
@@ -2939,7 +2939,7 @@ function traceQCheckMe(inputId, divId, answer) {
29392939
if (ans == correctAns) {
29402940
feedbackElement.html('Correct')
29412941
} else {
2942-
feedbackElement.html('Incorrect')
2942+
feedbackElement.html(vis.curTrace[i].question.feedback)
29432943
}
29442944

29452945
}

0 commit comments

Comments
 (0)