Group

Hi folks,

I have just started using GWT Graphics library and have problem with Group class.
The folowing code does not work with IE8 (ana with hosted mode browser in GWT). You can not see the secont
r2
.
When you do not use Group class, there code works fine.

With Firefox, Chrome, Safari, Opera code works fine.

Any ideas why ?


DrawingArea canvas = new DrawingArea(500, 500);
Rectangle r1 = new Rectangle(155, 155, 100, 200);
r1.setFillColor(“cyan”);
Rectangle r2 = new Rectangle(255, 25, 400, 20);
r2.setFillColor(“brown”);
Group g1 = new Group();
g1.add(r1);
g1.add(r2);
canvas.add(g1);
RootPanel.get().add(canvas);

Hello,

You have found a bug in my hobby project. IE uses VML to render graphics, other browsers use SVG. This is why the code works in the other browsers but not in IE. I hope I get some time to investigate the problem and fix it :slight_smile:

-Henri

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

Hi!

I released a new version of GWT Graphics. This version 0.9.2 (
download
,
release notes
) should fix this group issue.

Note also, that those color names, “cyan” and “brown”, aren’t valid color values. For more information about this, see a
section
from GWT Graphics Manual.

-Henri