Yeah, this behavior seem by design, but I was wondering about it too, doesn't seem logical. Maybe it was for memory-leak reasons, but otherwise it would be much better that a layer could be re-used. Can we look into changing this, or not?
Cheers, Richard. ----- Original Message ----- From: "Colin Thompson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 25, 2001 3:41 PM Subject: [Dynapi-Dev] problem with DynLayer.specificRemove and viewport > Testing IE 5.5 windows ME > > There is a serious problem with the current viewport code. take a look at > either the viewport or scrollpane examples, you can only add each label > once. The second time you try to add a label it's width and height are > unset. > > Currently when we call viewport.setContent(); we remove the current content > using removeFromParent(); which calls DynLayer.specificRemove(); and > basically kills our label. So the second time through all we are adding is > in effect an empty <div></div>. > > > > > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[email protected]/ > _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[email protected]/
