google-code-export / tatami

Automatically exported from code.google.com/p/tatami
1 stars 1 forks source link

GraphicCanvas.getWidth() throws exception with FireFox and Chrome only works with IE !!! #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

GraphicCanvas.getWidth() throws exception
with FireFox and Chrome only works with IE !!!

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.4,  XP Pro

Please provide any additional information below.

23:00:04.343 [ERROR] [MyApp] Uncaught exception escaped
com.google.gwt.dev.shell.HostedModeException: Something other than an int 
was returned from JSNI method 
'@com.objetdirect.tatami.client.gfx.GraphicCanvas::getWidth(Lcom/google/gwt
/core/client/JavaScriptObject;)': JS value of type string, expected int
    at 
com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
    at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:242)
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java
:75)
    at 
com.objetdirect.tatami.client.gfx.GraphicCanvas.getWidth(GraphicCanvas.java
)
    at 
com.objetdirect.tatami.client.gfx.GraphicCanvas.getWidth(GraphicCanvas.java
:120)

Original issue reported on code.google.com by shahram....@gmail.com on 19 Apr 2010 at 6:03

GoogleCodeExporter commented 9 years ago
I would appreciate a response if someone is working on this project, because I 
a lot of 
potential for this wrapper. If there is no activity I have to learn JS and use 
DOJO 
directly which I don't hope. Anyway your hard work is really appreciated.

Thanks
shahram....

Original comment by shahram....@gmail.com on 19 Apr 2010 at 6:07

GoogleCodeExporter commented 9 years ago
I am using canvas from tatami on an other project and I have never been faced 
with
this error.

Can you please report more informations ?

For example the version of gwt that you use ?

Original comment by raphael....@gmail.com on 11 May 2010 at 1:11

GoogleCodeExporter commented 9 years ago
Sorry I did not have time to work on my project for a while, but it was the 
very last one 2.0.3. According to my experience FF & chrome are stable 
apparently issue is Tatami that IE works in this case. I will post more info 
when I debug. 

Original comment by shahram....@gmail.com on 22 Jun 2010 at 4:09

GoogleCodeExporter commented 9 years ago
Ok, please also precise which version of FF and chrome you're running.

Original comment by raphael....@gmail.com on 22 Jun 2010 at 5:03