greatwar93 / gwt-g2d

Automatically exported from code.google.com/p/gwt-g2d
0 stars 0 forks source link

Surface.getWidth() #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
0. Surface s = new Surface(100, 200);
1. Window.alert("" + s.getWidth());
2. Window.alert("" + s.getCanvas().getWidth());

What is the expected output? What do you see instead?
1. 0 instead of 100
2. 100 is correct

What version of the product are you using?
gwt-g2d-v007

Please provide any additional information below.
Surface.getWidth() seems not to work correctly.
It always returns 0, also it has a size.

Original issue reported on code.google.com by False...@googlemail.com on 30 Jan 2011 at 10:00

GoogleCodeExporter commented 8 years ago
This is already fixed in the trunk build.

Please grab the latest source from the trunk or the jar file at: 
http://code.google.com/p/gwt-g2d/source/browse/trunk/versions/gwt-g2d-v008-pre-r
elease.jar

Thanks.

Original comment by hao1...@gmail.com on 30 Jan 2011 at 5:30