xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Shaw <hertzsprrr...@btopenworld.com>
Subject Using JSVGScrollPane and viewBox attribute
Date Fri, 11 Feb 2005 18:49:32 GMT
I have just found out (by building from batik from source with debug on) 
that JSVGScrollPane requires the viewBox attribute to be set on the root 
<svg> element.  Without it, you just get a mysterious 
NullPointerException.  It would be really nice to have a more 
informative error message, and perhaps a comment about this added to the 
javadocs.

Also, if the attr is missing, would it be possible to calculate a 
viewbox by getting the bounding box of the SVG document?

Thanks
James Shaw

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


Mime
View raw message