Skip to content

Commit

Permalink
fix: fix mindmap max width issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 7, 2020
1 parent f02f4f3 commit fcb8a82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
height: auto;
min-width: 500px;
min-height: 500px;
max-width: 800px;
max-width: 1600px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ export class LedgeMindmapComponent implements OnInit, AfterViewInit {
}

getHeight() {
const height = this.dataSize * 50 + 'px';
const width = (this.dataLevel + 1) * 320 + 'px';
const height = this.dataSize * 50;
const width = (this.dataLevel + 1) * 320;
return {
height,
width
height: height + 'px',
width: width + 'px'
};
}

Expand Down

0 comments on commit fcb8a82

Please sign in to comment.