Skip to content

Commit 854184a

Browse files
committed
optimizing iframe display a bit more
1 parent 96d7a3f commit 854184a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ ExecutionVisualizer.prototype.render = function() {
471471

472472
// add an extra label to link back to the main site, so that viewers
473473
// on the embedded page know that they're seeing an OPT visualization
474-
this.domRoot.find('#codeDisplayDiv').append('<div style="font-size: 8pt; margin-bottom: 20px;">Code visualized with <a href="http://pythontutor.com" target="_blank">Online Python Tutor</a></div>');
474+
this.domRoot.find('#codeDisplayDiv').append('<div style="font-size: 8pt; margin-bottom: 20px;">Code visualized with <a href="http://pythontutor.com" target="_blank" style="color: #3D58A2;">Online Python Tutor</a></div>');
475475
}
476476

477477
myViz.editAnnotationMode = false;
@@ -511,9 +511,10 @@ ExecutionVisualizer.prototype.render = function() {
511511

512512
if (this.params.codeDivWidth) {
513513
// set width once
514-
this.domRoot.find('#codeDisplayDiv').width(
515-
this.params.codeDivWidth);
514+
this.domRoot.find('#codeDisplayDiv').width(this.params.codeDivWidth);
516515
// it will propagate to the slider
516+
517+
this.domRoot.find("#pyStdout").css("width", this.params.codeDivWidth);
517518
}
518519

519520
// enable left-right draggable pane resizer (originally from David Pritchard)

0 commit comments

Comments
 (0)