I don't know. This piece of code is not mine. I guess the idea is being
able to create a layer directly with some HTML ( a tab�le, for example )
and having it automatically addapt to that content.
Michael Pemberton wrote:
> The last few lines of the DynLayer.prototype.specificCreate are as follows:
> if (this.html!=null) {
> if (this.w==null && this.getContentWidth()>0)
> this.setWidth(this.getContentWidth(), false);
> if (this.h==null && this.getContentHeight()>0)
> this.setHeight(this.getContentHeight(), false);
> }
>
> Can anyone explain why we override the use of dynamic height / width
> settings? I found this very odd since it forced any NULL height / width
> value to equal that of the current content.
>
> This masked a few bugs (all seem to be fixed now) but I am still unclear
> as to the purpose of this line. It started to appear in the DynAPI CVS
> about the same time as we made the move over to DynAPIX. Perhaps,
> Jordi, you see something that I am missing : )
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/