Skip to content

Commit 96d7a3f

Browse files
committed
make resizing work better with stdout
1 parent 98f2d4a commit 96d7a3f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎v3/js/pytutor.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,10 @@ ExecutionVisualizer.prototype.render = function() {
520520
this.domRoot.find('#codeDisplayDiv').resizable({
521521
handles: "e",
522522
minWidth: 100, //otherwise looks really goofy
523-
resize: function(event, ui){ // old name: syncStdoutWidth, now not appropriate
523+
resize: function(event, ui) { // old name: syncStdoutWidth, now not appropriate
524+
// resize stdout box in unison
525+
myViz.domRoot.find("#pyStdout").css("width", $(this).width());
526+
524527
myViz.domRoot.find("#codeDisplayDiv").css("height", "auto"); // redetermine height if necessary
525528
if (myViz.params.updateOutputCallback) // report size change
526529
myViz.params.updateOutputCallback(this);

0 commit comments

Comments
 (0)