Commit 76fd374f authored by Romain Casati's avatar Romain Casati
Browse files

Fix: PythonTutor does not break if the parent node is invisible.

parent fb094320
......@@ -1563,7 +1563,9 @@ ExecutionVisualizer.prototype.updateOutputFull = function(smoothTransition) {
// there's no point in re-rendering if this pane isn't even visible in the first place!
if (!myViz.domRoot.is(':visible')) {
return;
// [Basthon]
// There is a point in Basthon-Console! commenting the return.
// return;
}
// reset
......@@ -1615,7 +1617,9 @@ ExecutionVisualizer.prototype.updateOutputFull = function(smoothTransition) {
myViz.codeRowHeight = secondRowOffsetY - firstRowOffsetY;
}
assert(myViz.codeRowHeight > 0);
// [Basthon]
// Commented to support display in hidden context
// assert(myViz.codeRowHeight > 0);
var gutterOffsetY = gutterSVG.offset().top;
var teenyAdjustment = gutterOffsetY - firstRowOffsetY;
......@@ -1631,7 +1635,9 @@ ExecutionVisualizer.prototype.updateOutputFull = function(smoothTransition) {
if (myViz.params.arrowLines) {
assert(myViz.arrowOffsetY !== undefined);
assert(myViz.codeRowHeight !== undefined);
assert(0 <= myViz.arrowOffsetY && myViz.arrowOffsetY <= myViz.codeRowHeight);
// [Basthon]
// Commented to support display in hidden context.
// assert(0 <= myViz.arrowOffsetY && myViz.arrowOffsetY <= myViz.codeRowHeight);
}
// call the callback if necessary (BEFORE rendering)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment