Hi Michael, "Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on 12/14/2006 09:12:44 AM:
> so there are a bunch of transforms associated with the > JSVGCanvas. Plus you define a viewBox attribute in your SVG > document. What I?d like to do is have the JSVGCanvas resize when I > resize my main Window/Frame. If the user has zoomed in or out, I > want to preserve that. Basically I want to take what the user > currently sees and resize it accordingly. I was under the impression that this was more or less the default behavior of the Canvas. Anyway the code that handles this is the 'updateRenderingTransform' method on the JSVGCanvas (the default implementation is in AbstractJSVGComponent). > If the user?s looking at an entire document and they resize the window > smaller, I want the entire document shown (smaller) in the smaller > JSVGCanvas. If the user is zoomed in and has scrolled to an area of > the document (I have a JSVGScrollPane), I want that viewing area to > be the same when they resize. In short, I want to preserve what the > user sees, just size it according to the window size. Can I get some > pointers on how to achieve this? You can override the default implementation and do what ever you want, however I warn you it's tricker than it seems... ;)