Hello Everybody,

Currently I am trying to use the GWTCanvas from gwt-incubator-2.1.0
(together with gwt2.1).
All I want to do right now is a simple proof on concept by drawing two
rectangles.
Does not sound very fancy, but even this simple task fails in IE8.

I started by creating a new GWT project using the Eclipse Plugin (The
HelloWorldService template).

Then I placed basic GWTCanvas code into the onLoad method.

<code>
        /**
         * This is the entry point method.
         */
        public void onModuleLoad() {

                GWTCanvas canvas = new GWTCanvas(640, 480);

                canvas.setLineWidth(3);
                canvas.setStrokeStyle(Color.RED);

                canvas.strokeRect(30, 30, 100, 100);

                canvas.strokeRect(60, 50, 200, 200);

                RootPanel.get("mainArea").add(canvas);

        }
</code>

Works perfectly in FF > 3.5, Chrome but shows an empty page in IE8.
Compatibility mode in IE7 show one rectangle, but only one. Changing
from HTML Standard to Quirks mode did not have any effect.

Am I doing something obvious wrong?
I have found no information stating that the GWTCanvas does not work
with IE8.
Moreover the provided sample [1] from google incubator work perfectly
even in IE8.
What are the guys doing differently? ;)

Thanks in Advance for both your time and your knowledge!

Greetings
Stefan

[1] 
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/GWTCanvasDemo/GWTCanvasDemo.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to