drawview seems to resize larger but not smaller. Is this by design?

There is a bug reported fixed, but its test case only does a one shot draw.
http://www.openlaszlo.org/jira/browse/LPP-4836

Here is a test case for changing drawing size based on the one in the
bug report:

<canvas debug="true">
    <view name="trafficlight_container"
          bgcolor="yellow" >
        <attribute name="rad" type="number" value="50"/>
        <handler name="oninit">
            drawCircle();
        </handler>
        <method name="drawCircle" args="dv">
            redlight.clear();
            redlight.beginPath();
            var r = this.rad;
            redlight.arc(r,r,r,0,360);
            redlight.fillStyle = red;
            redlight.fill();
        </method>
        <simplelayout axis="y" spacing="0"/>
        <text>This should be *above* the redlight</text>
        <drawview name="redlight" />
        <text>This should be *below* the redlight</text>
        <button text="shrink"
            onclick="parent.rad = parent.rad / 2; parent.drawCircle();"/>
        <button text="expand"
            onclick="parent.rad += parent.rad; parent.drawCircle();"/>
   </view>
</canvas>

Running:
proxied, compiled for swf 8
lps 4.2 beta 1, linux centos 5.2
foxfire 2.0 linux & 3.0 windows, swf 9

Thanks.

Reply via email to