This looks like it is related to:

http://jira.openlaszlo.org/jira/browse/LPP-4684

where I ask:

Well, I can make unstretched* return the correct value, but what I don't understand:

1) What is the expected behavior when the view has no resource (and hence has nothing to take its dimensions from)?

2) What is the expected behavior of views nested in a view that stretches? Should they stretch along with the parent, or should they maintain their size?

If I run my amended example in 3.x, when there is no resource, the inner view expands to fill the outer view. When there is a resource, the inner view is warped to the same aspect ratio as the resource. Is this what we expect?

Maybe the guy who designed the examples can answer these questions?

On 2007-09-28, at 14:40 EDT, 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 <[EMAIL PROTECTED]>
Date: Sep 28, 2007 1:26 PM
Subject: LPP-4769: scaling examples
To: Henry Minsky <[EMAIL PROTECTED]>

 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


--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to