Hi ,

control_batik <[EMAIL PROTECTED]> wrote on 09/17/2008 12:36:03 PM:

> This line it's called only once , after create a new 
> document: svgCanvas.setSVGDocument((SVGDocument) 
> basedocument);
> 
> this line it's called only once, when I add to the empty 
> document the big svg file:
> In this case ele is the element of the big svg file.
> 
> root.appendChild(basedocument.importNode(ele, true)); 
> basedocument.getDocumentElement().setAttribute("viewBox", 
> "0 0 900 520");

   This should either be done before the document is added to
the canvas or it needs to happen in the UpdateManager thread.
However as long as you only do this once I suspect it's not the
cause of the 'white regions'.

> This Code is called each time i add a small svg: ele is its Element
> That means each time i clicked over the jsvgcanvas

   That code looks fine.

   Do the white areas appear when you click or when you drag
(assuming you can drag the icons after they are placed)?

> So, I add an icon appending it to the root in the update 
> manager thread. 

   I agree that looks fairly good. 

> And what exception you think i should get?

   I don't know, it's just that a rendering should report
problems that it encounters.  Since the rendering seems to
be having a problem I would expect a error.  Are you using 
the default UserAgent class with the canvas or are you 
replacing it?

   (if you don't know you are probably using the default).

> How I said before , this things appear after many time manipulating the 
svg
> file. 

Reply via email to