[Laszlo-dev] sprite.setWidth
Max Carlson
max at laszlosystems.com
Tue Jun 13 16:18:15 EDT 2006
P T Withington wrote:
> 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.
>
agreed. Can you file a bug for 4.0? Thanks!
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-dev
mailing list