Jorg Heymans wrote:

Thomas DeWeese wrote:

Hi Jorg,

Result: the new paths are now displayed properly but the logo is being displayed as well still. I checked the DOM tree and it's effectively gone there. With the next redraw (eg canvas resize or something) the logo disappears.

I don't suppose you can reproduce this?

It happens every time.

I meant in a standalone example.

   I'm having a hard time understanding how you could possibly
get this result if 2a happened before 2b in the UpdateManger
thread.

There is some odd behaviour though, because even when i set the node in question to hidden before i remove it, it is still displayed. Only when i set it to hidden and don't remove it it is not displayed anymore.

I'm guessing that you know this but all you need to do is removeChild the logo element. Mucking with it's children isn't doing anything useful, this shouldn't cause the problem of course.

Element logo = getSVGDocument().getElementById("logo");
if (logo != null) {
  logo.setAttributeNS(null, "visibility", "hidden");
  while (logo.hasChildNodes()) {
    logo.removeChild(logo.getFirstChild());
  }
// remove the logo
logo.getParentNode().removeChild(logo);
}

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to