xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helder Magalhães" <helder.magalh...@gmail.com>
Subject Re: bbox on text node in onload javascript
Date Wed, 20 Aug 2008 13:36:08 GMT
> I am unable to get the bbox from text node in javascript function call at
> onload of svg element.

Using a onload event hander the SVG should work: the SVG document is
already displayed. There are a number of known issues with some SVG
implementations (such as Firefox [1], at least for version 2) while
attempting to compute bounding boxes before the SVG document is
displayed (for example, in a script which will be immediately
evaluated when available, before the document is actually displayed).

Which Batik version are you using? Can you attach a reduced test case
for your experienced behavior? Does it still occur if you use the
"setTimeout" trick [1]? If not, then the SVG wiki page should be
updated in order to state that the "setTimeout" trick also applies to
Batik version X (the one you are using).

Hope this helps,

 Helder Magalhães

[1] http://wiki.svg.org/GetBBox#Firefox_Support

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

View raw message