Skip to content

Commit

Permalink
fix: fix chart position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 27, 2020
1 parent de9fba2 commit e02fcca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ export class MarkdownRenderComponent implements OnInit, OnChanges, AfterViewInit
private buildToolsets(code: any) {
this.toolsetId++;

const id = 'toolset-' + this.webComponentsIndex;
const id = 'toolset-' + this.toolsetId;
const json = LedgeMarkdownConverter.toJson(code);

const toolType = json.config.type;
Expand Down
4 changes: 3 additions & 1 deletion src/app/shared/toolset/toolset.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export class ToolsetComponent implements OnInit, AfterViewInit {
this.renderLineChart(this.option.data);
}

this.setToolsetStyle(this.option);
setTimeout(() => {
this.setToolsetStyle(this.option);
}, 500);
}

private renderLineChart(data) {
Expand Down

0 comments on commit e02fcca

Please sign in to comment.