xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John C. Turnbull" <ozem...@ozemail.com.au>
Subject RE: JSVGCanvas object won't resize
Date Wed, 29 Oct 2008 01:04:49 GMT
Alan,

Try adding a view box to the SVG.

Cheers,

John

> -----Original Message-----
> From: Alan Deikman [mailto:Alan.Deikman@znyx.com]
> Sent: Wednesday, 29 October 2008 10:56
> To: batik-users@xmlgraphics.apache.org
> Subject: JSVGCanvas object won't resize
> 
> This is one of those problems that must have some obvious answer but I
> just can't find it.
> 
> I am creating SVG drawings with Inkscape, and using the resulting files
> as resources to make JSVGCanvas objects for my display.  I put it down
> in a JPanel which is using a BorderLayout with the BorderLayout.CENTER
> attribute.
> 
> With one graphic, when I resize the JPanel using the mouse, the
> JSVGCanvas object resizes with it, scaling the drawing.
> 
> I have another graphic that doesn't do that.   The image always stays
> the same size in the upper left corner regardless of the resizing of
> the
> JPanel.  The Swing/Java program is the same -- just change one XML file
> for the other.  Obviously something within the XML file causes this
> behavior, but I have been searching for some XML attribute that can
> explain it but haven't found it.  There's a lot of Inkscape noise in
> the
> file which doesn't help.   Does anyone have any idea what could cause
> this?
> 
> Regards,
> 
> --
> Alan Deikman
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-
> help@xmlgraphics.apache.org


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


Mime
View raw message