have you added the layer to a parent yet? if not, it hasn't actually been
created and will not have a content height.
Hershel Robinson wrote:
> I'm using DynAPI Version 2.53 and I'm having a little trouble with
> getContentWidth().
>
> The variable myText is set to some HTML code and then I have this:
>
> invite.textLayer.setHTML("<CENTER>"+
> myText+
> "</CENTER>")
>
> alert("width = "+invite.textLayer.getContentWidth())
>
> I can see the that text is being set properly (I see it in my browser). No
> matter what the text is, however, the getContentWidth is always the same.
>
> Any assistance is appreciated--I don't know what I'm doing wrong.
>
> Hershel
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> _______________________________________________
> 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