Maybe Thomas' answer of my similar question helps you Maik
> I have several overlapped elements on my canvas. > How can I one of these to the foreground (on top of all) ?
Assuming they are all in a common group you can use:
Element toMove = ....
toMove.getParentElement().appendChild(toMove);This makes 'toMove' the last child of it's parent. This will make it draw 'on top' of all the other children of the parent. If you move it out of the group you need to be careful if fill/stroke properties were set on the group they won't move with it.
bader houmad schrieb:
hello everybody
SVG draws the first element, then draws the next element on top of that, is there a way to set an element on the top when it is not the last element?
thanks for your help
------------------------------------------------------------------------
Ne cherchez plus, trouvez ! Avec le nouveau MSN Search <http://g.msn.com/8HMAFRFR/2734??PS=47575> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
