What version of gwt and gwt-incubator are you using?
1.5.3, Dec_28
What OS and browser are you using?
Mac OS X, Safari, Firefox
Do you see this error in hosted mode, web mode, or both?
both
Hopefully using the test case you have generously provided, what steps will
reproduce the problem?
1. Create a GWTCanvas: canvas = new GWTCanvas(100, 100).
2. Scale it to something smaller: canvas.scale (0.35, 0.35);
3. Draw stuff in it.
4. Call canvas.clear();
What is the expected output? What do you see instead?
Note that only the top left portion of the item is cleared, rather than the
whole panel.
Workaround if you have one:
Create a clear() hack that clears a much larger rectangle. Element e is
canvas.getElement():
public static native void clear(Element e)
/*-{
e.getContext('2d').clearRect(0, 0, 1000, 1000);
}-*/;
Please provide any additional information below, and thank you for taking
the time and effort to report this issue, as good issue reports are critical
for
our quest to make GWT's new widgets and libraries shine.
clear() isn't that useful, in the end, but a proper clearRect (x1, y1, x2, y2)
would be great.
Original issue reported on code.google.com by reentry.espresso@gmail.com on 25 May 2009 at 11:04
Original issue reported on code.google.com by
reentry.espresso@gmail.com
on 25 May 2009 at 11:04