Commit 8bc315f1 authored by olau@iola.dk's avatar olau@iola.dk

Little cleanup

git-svn-id: https://flot.googlecode.com/svn/trunk@136 1e0a6537-2640-0410-bfb7-f154510ff394
parent f899a097
...@@ -348,10 +348,8 @@ ...@@ -348,10 +348,8 @@
// the canvas // the canvas
canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(target).get(0); canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(target).get(0);
ctx = canvas.getContext("2d"); ctx = canvas.getContext("2d");
// overlay = $('<canvas style="position:absolute;left:0px;top:0px;" width="' + canvasWidth + '" height="' + canvasHeight + '"></canvas>').appendTo(target).get(0);
// overlay canvas for interactive features // overlay canvas for interactive features
overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(target).get(0); overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(target).get(0);
octx = overlay.getContext("2d"); octx = overlay.getContext("2d");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment