Skip to content

Commit 1a3cf6d

Browse files
committed
bah
1 parent 25a9995 commit 1a3cf6d

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

‎v5-unity/js/pytutor.ts‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ export class ExecutionVisualizer {
384384
this.params.updateOutputCallback(this);
385385
}});
386386

387-
this.outputBox = new ProgramOutputBox(this, this.domRoot.find('#vizLayoutTdSecond'));
387+
this.outputBox = new ProgramOutputBox(this, this.domRoot.find('#vizLayoutTdSecond'),
388+
this.params.embeddedMode ? '45px' : null);
388389
this.dataViz = new DataVisualizer(this,
389390
this.domRoot.find('#vizLayoutTdSecond'),
390391
this.domRootD3.select('#vizLayoutTdSecond'));
@@ -3002,15 +3003,13 @@ class DataVisualizer {
30023003

30033004
class ProgramOutputBox {
30043005
owner: ExecutionVisualizer;
3005-
params: any; // aliases owner.params for convenience
30063006
domRoot: any;
30073007

30083008
// how many *maximum* lines get printed to stdout in the entire trace?
30093009
numStdoutLines: number = 0;
30103010

3011-
constructor(owner, domRoot) {
3011+
constructor(owner, domRoot, heightOverride=null) {
30123012
this.owner = owner;
3013-
this.params = this.owner.params;
30143013
this.domRoot = domRoot;
30153014

30163015
var outputsHTML =
@@ -3040,8 +3039,8 @@ class ProgramOutputBox {
30403039
if (this.numStdoutLines <= 3) {
30413040
stdoutHeight = (18 * this.numStdoutLines) + 'px';
30423041
}
3043-
if (this.params.embeddedMode) {
3044-
stdoutHeight = '45px';
3042+
if (heightOverride) {
3043+
stdoutHeight = heightOverride;
30453044
}
30463045
// do this only after adding outputsHTML to the DOM
30473046
this.domRoot.find('#pyStdout').width('350px')
@@ -3466,15 +3465,11 @@ class CodeDisplay {
34663465

34673466
class NavigationController {
34683467
owner: ExecutionVisualizer;
3469-
params: any; // aliases owner.params for convenience
3470-
34713468
domRoot: any;
34723469
domRootD3: any;
34733470

34743471
constructor(owner, domRoot, domRootD3) {
34753472
this.owner = owner;
3476-
this.params = this.owner.params;
3477-
34783473
this.domRoot = domRoot;
34793474
this.domRootD3 = domRootD3;
34803475

0 commit comments

Comments
 (0)