Say I have a simple program that puts a JSVGComponent in a frame and loads up the following document:
<svg xmlns="http://www.w3.org/2000/svg"> <script> function f() { var svg = document.documentElement; System.out.println('' + svg.width.baseVal.value ',' + svg.height.baseVal.value); } </script> <rect width="100%" height="100%" fill="yellow" stroke="black" stroke-width="10" onclick="f()"/> </svg> Since there is no viewBox, the dimensions of the viewport will be used as the area of interest for display in the component. When the frame is resized, and the mouse is clicked on the rect, the correct (updated) dimensions are printed, but the displayed image does not change. Should the rect (whose width and height are 100%) be repainted to fit the new size of the component? If so, I'm not sure exactly where I would need to make a change to effect this. Cameron -- e-mail : cam (at) mcc.id.au icq : 26955922 web : http://mcc.id.au/ msn : cam-msn (at) aka.mcc.id.au office : +61399055779 jabber : heycam (at) jabber.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
