And after that, you can use the onload event such that
onload event stuff.. (e) {
o=e.getTarget()
o.setHeight()=o.getContentHeight();
o.setWidth()=o.getContentWidth();
}
-----Original Message-----
From: Michael Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 June 2001 12:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] Autosizing to content?
With any layer that you create, if you do not specify a width / height, it
will automatically resize with the dimensions of the content you place in
it.
Gordan Bobic wrote:
> Hi!
>
> I'm a bit new to this, so please bear with me.
>
> Is there a widget of some description that automatically adjusts it's
> size to the size of it's contents? I need someting that can contain
> HTML snippets, and adjust it's size to the size of rendered HTML that
> is set by setHTML function.
>
> I have seen that the panels do something similar, but I could only get
> it working for plain text files.
>
> I couldn't find an example of using it with setHTML.
>
> Can anyone point me in the right direction?
>
> Cheers.
>
> Gordan
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help