Alan, Try adding a view box to the SVG.
Cheers, John > -----Original Message----- > From: Alan Deikman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 29 October 2008 10:56 > To: [email protected] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: batik-users- > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
