Canvas Widget

Hi,

I’ve been playing with the Canvas add-on created by Henri Muurimaa.

I created a small test app using Henri’s example

            Canvas canvas = new Canvas();
	canvas.setSizeFull();
	canvas.setBackgroundColor("#002200");
	canvas.setStrokeColor("#aaaaff");
	canvas.saveContext();
	canvas.arc(100, 90, 50, 0, Math.PI, true);
	canvas.stroke();
	canvas.beginPath();

	canvas.restoreContext();
	canvas.arc(75, 30, 20, 0, Math.PI, false);
	canvas.arc(125, 30, 20, 0, Math.PI, false);
	canvas.stroke();

this works fine when viewed in firefox, I get Henri’s smiley face :smiley: but not in internet explorer 8 - I only get the backgroud color?

My lib folder contains

canvaswidget-1.0.1.jar
gwt-graphics-0.9.7.jar
gwt-incubator-20100204-r1747.jar
vaadin-6.4.0.jar

the widget set compliation works ok.

has anyone any ideas as to why - this has me stumped?

thanks for your time

regards,

Patrick

IE8 is not in the widget’s compatibility list. I believe it is due to the fact tha IE8 does not support HTML5 canvas :wink:

Ah nuts! I missed that class entitled “IE8 sucks because”

thanks for the quick reply Michal

That’s right. Hoping that HTML5 canvas support in IE9 won’t be crippled like some rumors lead to expect…

From what I’ve read about IE9 it won’t be supported on XP

a huge amount of business users are still using XP - me thinks it’s more a marketing decision that a technical one from Microsoft… bah!

we can use the compatibility view option in ie8 to view the canvas sample output.