jonessieka / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

drawImage coordinate error #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
See http://www.watersheep.org/~markh/excanvas_bug/excanvas_bug.html or the
attached zip file.

The draw() function is called twice, yet on the second call the image is
drawn 3px offset (both x & y).  Only the first call draws at the correct
coordinates.

What is the expected output? What do you see instead?
The second and subsequent times the box is drawn it should be at the
specified location, but is offset.

What version of the product are you using? On what operating system?
WinXP / IE7, excanvas_r3

Please provide any additional information below.
I stumbled upon a workaround by using an <img> in the html and referencing
it by getElementById, however I would prefer to use image pre-loading
techniques (i.e. new Image()) but seem not to be able to get past this issue...

I feel I must have missed something obvious since this is such a trivial
example...?

Original issue reported on code.google.com by purplefl...@gmail.com on 9 Sep 2009 at 12:06

Attachments:

GoogleCodeExporter commented 9 years ago
Tested with excanvas.js from TRUNK and works okay.  Issue has been fixed on 
trunk.

Original comment by purplefl...@gmail.com on 9 Sep 2009 at 3:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by fabien.menager on 19 Oct 2009 at 2:46