Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions