Re: JSVGScrollPane question

2004-06-23 Thread Thomas DeWeese
Hi Nikhil, Nikhil Dinesh wrote: Ive managed to fix resizing on the scrollpane by setting the viewBox on a GVTTreeRenderingCompleted event notification. But I have to do it explicitly. To use the JSVGScrollPane your SVG document should have a viewBox attribute on the outermost svg element. This i

Re: JSVGScrollPane question

2004-06-22 Thread Tonny Kohar
Hi, > I was trying to use the JSVGScrollPane and it kept throwing > NullPointerExceptions. After tracing the execution I found that it seems > to check the viewBox before setting it. I am not sure where the problem is. However you could try to set the JSVGCanvas with loaded SVG Document before

Re: JSVGScrollPane question

2004-06-22 Thread Nikhil Dinesh
Ive managed to fix resizing on the scrollpane by setting the viewBox on a GVTTreeRenderingCompleted event notification. But I have to do it explicitly. On Tue, 22 Jun 2004, Nikhil Dinesh wrote: > Hi, > > I was trying to use the JSVGScrollPane and it kept throwing > NullPointerExceptions. After

JSVGScrollPane question

2004-06-22 Thread Nikhil Dinesh
Hi, I was trying to use the JSVGScrollPane and it kept throwing NullPointerExceptions. After tracing the execution I found that it seems to check the viewBox before setting it. I hacked around this doing the following: public class MySVGScrollPane extends JSVGScrollPane{ public MySVGScrollPane(