[Laszlo-dev] sprite.setWidth
P T Withington
ptw at openlaszlo.org
Tue Jun 13 15:13:00 EDT 2006
On 2006-06-13, at 15:07 EDT, Max Carlson wrote:
> P T Withington wrote:
>> On 2006-06-13, at 14:09 EDT, Max Carlson wrote:
>>> Henry Minsky wrote:
>>>>
>>>>
>>>> Does it make sense in any circumstance that a sprite would get
>>>> passed a
>>>> null arg to
>>>> setWidth or setHeight?
>>>
>>> To LzView, a null height/width signifies the view should size to its
>>> children. Also, the swf sprite uses null setWidth/Height() calls
>>> to set
>>> up scaling and stretches.
>> We probably should use 'auto' in place of `null`.
> I agree, except it would break existing apps that use setWidth/
> Height(null)
So, deprecate null, accept auto, drop null in 4.1.
More information about the Laszlo-dev
mailing list