PDA

View Full Version : resize = "true"


Peter_Chea
08-28-2003, 05:46 PM
Hi Antun, resize="true" cause text not to appear. Is there a way of fixing the problem.
<canvas>
<view width="100">
<attribute name="mytext" value="this.width" when="always"/>
<text id="txtlabel" text="${parent.mytext}" resize="true" align="center"/>
</view>
</canvas>

antun
08-28-2003, 06:02 PM
You might want to try:


<canvas debug="true">
<view width="100" name="foo">
<attribute name="mytext" value="this.width" when="always"/>
<text id="txtlabel" text="${parent.mytext.toString()}" resize="true"
align="center"/>
</view>
</canvas>


-Antun

Peter_Chea
08-29-2003, 09:37 AM
Thanks, that works.