ckyang74 / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

GWT Canvas should use explorercanvas instead of rolling it's own #349

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
GWT Canvas does a good job of implementing Canvas on IE, but not as good as 
does 
explorercanvas, another google project found at:

http://code.google.com/p/explorercanvas/

Rather than duplicating effort it would be better to include explorercanvas in 
GWT canvas for IE 
rendering.

Original issue reported on code.google.com by mbis...@gmail.com on 7 Apr 2010 at 10:49

GoogleCodeExporter commented 9 years ago
I am attaching a series of files that overload the GWT canvas classes for IE to 
show that it is possible to include 
excanvas and use GWT Canvas.

Original comment by mbis...@gmail.com on 7 Apr 2010 at 10:51

Attachments:

GoogleCodeExporter commented 9 years ago
This class performs the necessary init for explorer canvas.

Original comment by mbis...@gmail.com on 7 Apr 2010 at 10:54

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mbis...@gmail.com on 7 Apr 2010 at 10:55

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mbis...@gmail.com on 7 Apr 2010 at 10:55

Attachments:

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

1. Add these classes to your GWT project. The compiler will favor these classes 
over the ones in gwt-
incubator.jar.

2. Add the following line to the <head> of your HTML/JSP page:

    <!--[if IE]>
    <script type="text/javascript" src="excanvas.js"></script>
    <![endif]-->

3. Download and excanvas.js from the explorercanvas project page. Add it to 
your GWT project in war/ or 
src/webapp, wherever you put your site's artifacts.

Original comment by mbis...@gmail.com on 7 Apr 2010 at 10:59

GoogleCodeExporter commented 9 years ago
Hi

I have tried you suggestion and patchs, but it does not work for me.

Could you attach a zipfile with small complete example working in hosted mode.?

/FLemming

Original comment by flemming...@gmail.com on 1 Oct 2010 at 12:03

GoogleCodeExporter commented 9 years ago
As anyone gotten this to work with IE8?

Original comment by rex.beir...@gmail.com on 8 Mar 2011 at 9:01