I build a DOM on the fly and do this:
//myDoc that has been built on the fly. myJSVGCanvas.setDocument(myDoc); //Add the myJSVGCanvas into a JSVGScrollPane, add the JSVGScrollPane into a JPanel, and display it in a JFrame. No matter how I resize the frame, the scroll bars will never show up. But if I save the myDoc into a file after I build the doc and load the file back to the myJSVGCanvas, scrolling works like a charm. Something like this: //The same myDoc is saved to a file at theFilePath. myJSVGCanvas.loadSVGDocument(theFilePath) //The rest is same as the above. How can I make the former work?
