getBBox() returns null

fireball <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
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


<svg
   xmlns="http://www.w3.org/2000/svg"
   version="1.1"
   id="id">
  <g
     id="id1"
     transform="matrix(1,0,0,1,0,0)">
    <rect
       id="id2"
       width="10"
       height="10"
       fill="none"
       stroke="#ffffff"/>
    <text
       id="id3"
       x="10"
       y="10"
       font-style="normal"
       text-decoration="none"
       font-weight="normal"
       font-size="12"
       font-family="none"
       fill="red">
       text</text>
  </g>
</svg>



--
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.