[Laszlo-dev] Fwd: LPP-4769: scaling examples
Max Carlson
max at openlaszlo.org
Fri Sep 28 13:19:45 PDT 2007
Yep, I bet it's zero-width. This testcase:
http://localhost:8080/trunk/test/lztest/lztest-view.lzx
Gives the following errors:
ERROR: In suite LzView Test Suite, test 2, failed assertion: FAIL: (BUG:
LPP-2161) view3.v1.unstretchedheight failure (2)Equals expected 0, got 1
ERROR: In suite LzView Test Suite, test 2, failed assertion: FAIL: (BUG:
LPP-2161) view3.v1.unstretchedwidth failure (3)Equals expected 0, got 1
ERROR: Failed 1 suites, LzView Test Suite
Perhaps that's part of the issue.
Henry Minsky wrote:
> Hey Max,
>
> This test case is derived from an example that used to work in 3.4, and just
> displays a red rectangle in 4.0.5 and trunk.
>
> <canvas width="1200" height="600">
> <font src="helmetb.ttf" name="helmet"/>
> <view height="100" bgcolor="red" id="v1" stretches="both"
> onclick="this.animate('height', -10, 1000 , true )">
> <attribute name="aspect" value="${unstretchedwidth/unstretchedheight}"/>
> <attribute name="width" value="${ height * aspect}"/>
> <text font="helmet" fontsize="22" resize="true" id="t1">
> This is some text
> </text>
> </view>
> </canvas>
>
> I'm not sure what is going on here, and also I didn't realize that
> unstretchedheight and unstrectchedwidth were supposed to be valid for a view
> that is not a bitmap resource.
>
>
> I can't figure out what is going on, the text view (sprite movieclip,
> etc)claims to be visible, and in the right place, yet it doesn't display. Is
> some coordinate system transform getting done to it
> to make it zero width or something?
>
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Lou Iorio <lou at louiorio.com>
> Date: Sep 28, 2007 1:26 PM
> Subject: LPP-4769: scaling examples
> To: Henry Minsky <henry.minsky at gmail.com>
>
> Hi Henry,
>
> 2.3 Scaling: examples 26.13 and 26.14 don't work.
>
> http://localhost:8080/trunk/docs/developers/views.html#d0e63118
>
> I can't figure out why. Can you take a look?
>
> Thanks,
>
> Lou
>
>
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-dev
mailing list