Right, and the monitors show it in action. (The monitors don't get
installed soon enough to catch the initial setting.)
On 2006-06-19, at 18:21 EDT, Jim Grandy wrote:
> Layouts set their subject views' axes *after* initial arguments are
> set. So the first simplelayout (governing x axis) trumps the
> explicit value given for the x axis of the yellow view. And
> conversely, the second layout (governing y axis) trumps the
> explicit value given for the y axis of the blue view.
>
> On Jun 19, 2006, at 3:13 PM, P T Withington wrote:
>
>> Fun with x and y:
>>
>> <canvas debug="true">
>> <class name="myview" bgcolor="${global[name]}" height="30"
>> width="50">
>> <handler name="onconstruct">
>> Debug.monitor(this, 'x');
>> Debug.monitor(this, 'y');
>> </handler>
>> </class>
>> <view >
>> <simplelayout axis="x" spacing="10" inset="15"/>
>> <simplelayout axis="y" spacing="10" inset="15"/>
>> <myview name="blue" y="40" />
>> <myview name="yellow" x="15" />
>> <myview name="green" />
>> </view>
>> </canvas>
>>
>
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev