View Full Version : Zooming In
swffoo
07-26-2006, 01:10 PM
Is there a way to zoom in?
notzippy
07-27-2006, 07:07 AM
Use the stretches attribute.
For example you have one container like the following.
<canvas height="550" width="500">
<view width="550" height="550" bgcolor="red" stretches="both">
<view bgcolor="blue">
<text text="hello"/>
</view>
</view>
</canvas>
The blue view will always be stretched to the size of the red container (when the attribute stretches="both" is present)
You can (of course) make the width/height dependent on an atttribute and have some fun..
<canvas height="550" width="900">
<simplelayout/>
<slider name="s" width="300" value="50"/>
<view width="${950 * parent.s.value/100}" height="${550 * parent.s.value/100}" bgcolor="red" stretches="both">
<view bgcolor="blue">
<text text="hello"/>
</view>
</view>
</canvas>
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.