You can see this if you write
myLayer=new DynLayer(null,100,100,100,100,"#ff0000");
myChild=new DynLayer(null,50,50,50,100,"#00ff00");
myLayer.addChild(myChild);
DynAPI.document.addChild(myLayer);
setTimeout("myLayer.addChild(myChild)",2000);
after second addChild child layer disappears!
Attached .html demonstrates this bug (and how to solve it) more clearly.
Tested in Windows 2000 (SP2).
IE 5.5 - Bugs in attached code as far as in code listed above.
Mozilla 9.2 - Bugs in attached code as far as in code listed above.
Netscape 4.7 - Some bugs in attached code. No one in code listed above.
Yurij Silvestrov
Title: DynAPI Distribution: Bug in the specificRemove function
|
Note: the blue layer is a child of the yellow one. mySecondLayer.addChild(myChild) myChild.setSize(50,50), myChild.setBgColor('#ffff00') myLayer.addChild(myChild) mySecondLayer.addChild(myChild,true) //second parameter added by me All functions listed above in <script> are nothing but a stub. But you can see an error in DynAPI. Try this: click the first link, then the second. Or refresh window and click the third link. After that refresh window and click the fourth link to see the difference. |
