Skip to content

Commit 84c04b8

Browse files
author
Philip Guo
committed
left margin arrows work on Firefox 15 now
1 parent 3b3f085 commit 84c04b8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,11 +747,10 @@ ExecutionVisualizer.prototype.updateOutput = function() {
747747

748748
// set the gutter's height to match that of its parent
749749
// (we often can't do this earlier since the entire pane
750-
// might be invisible and hence return a height of zero)
750+
// might be invisible and hence returns a height of zero or NaN -- the exact format depends on browser)
751751
var gutterSVG = myViz.domRoot.find('svg#leftCodeGutterSVG');
752-
if (!gutterSVG.height()) {
753-
gutterSVG.height(gutterSVG.parent().height());
754-
}
752+
gutterSVG.height(gutterSVG.parent().height());
753+
755754

756755
var tableTop = 5; // manually adjust this so that it looks good :)
757756

0 commit comments

Comments
 (0)