title: html5 canvas "graphics persistence" on reposition/resize
body: <p>I noticed that when you move a canvas around or when you resize it, everything inside gets erased. I remember having a similar problem in windows forms applications in C#.
  Anyway, what's the best way to keep the graphics on canvas, even after it moves etc.? (using javascript)</p>
  
  <p>I've been working on a paint using canvas and websockets, you can see my problem here: <a href="http://students.info.uaic.ro/~tudor.berechet/" rel="nofollow">http://students.info.uaic.ro/~tudor.berechet/</a> (just go to Coboards, select the Brush tool, click a bunch of times on canvas and then resize the window or enlarge the canvas)</p>
  
  <p>One more thing I noticed, running the site off my HDD, this problem doesn't occur. which makes me wonder if there's some strange error somewhere.</p>
  
  <p>I definitely need a persistent canvas, because I'm gonna have to implement the hand tool to move it around...</p>
  
  <p>What say you?</p>