xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tisserand Romuald <romuald.tisser...@siemens.com>
Subject RE: Problem with JSVGComponent.setSize
Date Fri, 14 May 2004 09:36:00 GMT
Thanks for your answer.

I don't know if I use viewbox attributes.
I call getSVGDocumentSize to get the SVG image size and set the JSVGComponent to that size.

-----Original Message-----
From: Tonny Kohar [mailto:tonny@kiyut.com] 
Sent: mercredi 14 mai 2014 10:15
To: Batik Users
Subject: Re: Problem with JSVGComponent.setSize


Hi,

> I'm using the JSVGComponent and I've put it into a Panel. I'm calling setLocation to
set its location and setSize.
> When I set the JSVGComponent size to its parent (the panel) size, there's no problem,
everything is fine.
> But if I try to set a size less than its parent, the graphic elements are well resized
to fit the new size, but they are moved.
> 
> I don't know if the move is due to a transform (my file doesn't contain any transform)
or another thing.

I do not know either but you could check below:

Do you use any viewbox attributes, and the width & height are you using
percentage or absolute length?

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



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

---------------------------------------------------------------------
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