Last week, OpenLaszlo 4.0.3 was released (without much fanfair, since it’s a bugfix release). One little-noticed bug that I’m happy to see fixed is the stretches attribute.
The stretches attribute lets you stretch a resource to fit the view it’s attached to. The thing is, that stretches was always supposed to adjust the view’s entire coordinate space relative to the size of the image.
To see what I mean, play around with the larger window below:
Notice how the contents of that window - the resource and the smaller window - all resize simultaneously. I'm not sure of the practical applications of this yet, but it makes for a nice effect.
You can download the source for the above application if you like. Remember to compile in OpenLaszlo 4.0.3.