If you are using JSVGCanvas, make sure you set the document state:


If not using canvas, you'll need to boot the dom:


On Thu, Sep 27, 2012 at 8:47 AM, fireball <samiibrag@hotmail.com> wrote:
I have svg as shown below. Whenever I load this svg and try to get BBox of
its text it returns null. How to properly get the BBox?

Element eltText = document.getElementById("id3");
SVGRect svgRect = ((SVGOMTextElement)eltText).getBBox(); <-- returns null


View this message in context: http://batik.2283329.n4.nabble.com/getBBox-returns-null-tp4655273.html
Sent from the Batik - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org