Skip to content

Commit

Permalink
Improve ScrollPager tool: Clear Canvas before drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
YerayAlonso committed Nov 19, 2018
1 parent fced7b4 commit dce37b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/teechart.js
Original file line number Diff line number Diff line change
Expand Up @@ -6355,6 +6355,8 @@ Tee.Chart=function(canvas,data,type)
if (!ctx)
throw "Canvas does not provide Context";

ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);

if (r.automatic)
r.setFrom(this.bounds);

Expand Down

0 comments on commit dce37b0

Please sign in to comment.