[Laszlo-dev] resetting a view's width to take on the size of its contents

P T Withington ptw at pobox.com
Mon Apr 6 09:05:02 PDT 2009


The doc is correct.  You still set the width to null to have a view  
take on its 'natural' width.

[There may have been some confusion in trunk where we declared width  
to be Number when first porting to swf9.  In JS2, you are supposed to  
be able to declare something Number? and permit null as a value, but  
swf9 seems not to implement that, so we had to remove the declaration.]


On 2009-04-06, at 11:34EDT, Sarah Allen wrote:

> Hi all,
>
> I vaguely remember that the behavior of width="null" changed because  
> some runtime didn't like an attribute changing its type or  
> something.  Did the behavior switch back or is this documentation in  
> the view reference incorrect:
> "width    The width of the view. Can be set to either a number, or  
> null, to indicate that the view should be sized to hold its content.  
> When read, reflects the actual size of the view. "
>
> If the doc is incorrect, how do I override in an instance a view  
> which has specified a width that I want it to now size to its  
> contents.
>
> Thanks,
> Sarah



More information about the Laszlo-dev mailing list