Sorry again for the inconvenience. The patch is as follows:
In lps-3.3/lps/components/utils/layouts/simplelayout.lzx, comment out
(or delete) lines 51 and 56:
// var o = this.axis == "x" ? "y" : "x";
for(var i=0; i < l; i++) {
var s = this.subviews[i];
if ( !s.visible ) continue;
// s.setAttribute( o , 0 ); // reset opposite axis
if ( s[ this.axis ] != c ){
s.setAttribute( this.axis , c );
}
c += this.spacing + s[ this.sizeAxis ];
}
This will restore the previous behavior. This change will be picked
up next time you recompile your application(s); you should need to
take no further action.
Not that there was one other change to this file, modifying the body
of the setAxis call from
this.axis = a;
this.sizeAxis = a == "x" ? "width" : "height"
to
if (this['axis'] == null || this.axis != a) {
this.axis = a;
this.sizeAxis = a == "x" ? "width" : "height"
this.update();
}
I believe the conditional is appropriate and can remain. The added
call to update() should not cause problems either, but since it may
have an effect on performance, to be safe you can comment it out.
jim
On May 29, 2006, at 8:23 PM, Jim Grandy wrote:
> Of course, I meant 3.3.1 below.
>
> On May 29, 2006, at 7:46 AM, Jim Grandy wrote:
>
>> Hi,
>>
>> This is also being discussed over on laszlo-dev.
>>
>> We'll have a patch available today, and it's very likely we'll do a
>> 3.2.1 fixing this as well.
>>
>> jim
>>
>> On May 29, 2006, at 12:45 AM, Luca Ritossa wrote:
>>
>>> Has somebody encountered this problem with new release?
>>>
>>> <canvas>
>>> <view y="10" bgcolor="red" width="500" height="100">
>>> <simplelayout axis="y"/>
>>> <text align="center" >This text should be centered inside
>>> the
>>> red view</text>
>>> <text align="center" >This text too</text>
>>> <text align="right" >This text should be right aligned</
>>> text>
>>> </view>
>>> </canvas>
>>>
>>> The problem seems to be in simplelayout.
>>> In the previous version all works fine...
>>>
>>> This issue has already been registered in jira at
>>> http://www.openlaszlo.org/jira/browse/LPP-2091
>>>
>>> Bye,
>>> Luca Ritossa
>>>
>>>
>>> _______________________________________________
>>> Laszlo-user mailing list
>>> [email protected]
>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>
>> _______________________________________________
>> Laszlo-user mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user