Layers will always be recycled on NS4, no dependency on the size or
anything.
the Layer object is still in memory, and can be simply resized seeing that
it's contents will be rewritten anyway. The layer's size is reset before the
HTML is written into it..
so glance at it again :-) (and focus on the createElement() method)
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Alex Chong
> Verzonden: vrijdag 9 februari 2001 2:44
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: [Dynapi-Dev] A simple question
>
>
>
> Hi,
>
> I have glanced through the Dynapi code and realized that deleted
> layers are
> seldom recycled. I guess this is because when creating a new
> Layer in Netscape
> 4x, an initial width has to be specified to ensure proper
> wrapping of text.
> Thus, a deleted layer can only be recycled if the new layer to be
> created intend
> to have the same initial width. Please correct me if I am wrong.
>
>
> Alex Chong
>
> Michael Pemberton wrote:
>
> > no. the layer is only hidden. It is also placed in an array
> that is used
> > when another DynLayer is created. This way, new layers are
> only created when
> > needed.
> >
> > francesco AGATI wrote:
> >
> > > Hi,
> > >
> > > when i call deleteElement in Netscape 4 the layer is really
> deleted or is
> > > only hide?
> > >
> > > I have see that the layer is only set to hide.
> > >
> > > Can the Dom of netscape 4 really cancel an elemement from the memory?
> > >
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> > --
> > Michael Pemberton
> > [EMAIL PROTECTED]
> > ICQ: 12107010
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev