Skip to content

Commit

Permalink
Fix tree height
Browse files Browse the repository at this point in the history
Co-authored-by: T4rikA <[email protected]>
Co-authored-by: linusha <[email protected]>
  • Loading branch information
3 people committed Jun 14, 2021
1 parent d2650e7 commit 2895573
Show file tree
Hide file tree
Showing 2 changed files with 389 additions and 387 deletions.
7 changes: 1 addition & 6 deletions editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,7 @@ export class InteractivesEditor extends QinoqMorph {

const topWindowHeight = this.ui.subWindow.top;

this.ui.interactiveGraph.extent = pt(
this.ui.interactiveGraph.width,
topWindowHeight - this.ui.interactiveGraph.submorphs[0].height -
this.ui.interactiveGraph.scrollbarOffset.x -
2 * this.ui.interactiveGraph.borderWidth
);
this.ui.interactiveGraph.extent = pt(this.ui.interactiveGraph.width, topWindowHeight);

this.ui.inspector.position = pt(extent.x - this.ui.inspector.width, 0);
this.ui.inspector.extent = pt(this.ui.inspector.width,
Expand Down
Loading

0 comments on commit 2895573

Please sign in to comment.