laaglu / lib-gwt-svg

a general purpose SVG library for GWT. The goal is to make it easy to do SVG graphics in a GWT application
http://www.vectomatic.org/libs/lib-gwt-svg
39 stars 23 forks source link

TypeError: this.svgElement_1_g$ is undefined #20

Open tommueller opened 8 years ago

tommueller commented 8 years ago

This lib is teasing me ...

I now gwt this error in the Browser console

TypeError: this.svgElement_1_g$ is undefined

I am adding and SVGImage via UiBinder:

<svgui:SVGImage ui:field="iconImage" resource="{gui.pageIcon}" classNameBaseVal="{style.icon}" />

and have this on top of the UiBinder-File

xmlns:svgui='urn:import:org.vectomatic.dom.svg.ui'

<ui:with type="com.project.client.utils.gui.GUIImageBundle" field="gui" />

and the inherit in the Module.gwt.xml

<inherits name='org.vectomatic.libgwtsvg'/>

This already throws the error.

edit I worked around this by just adding the SVG from the code (that works perfectly fine!), but this is only a quickfix, because I need this working now.