hari-kj
11-06-2009, 12:27 AM
Hi,
I'm sort of like a newbie to Flex and this issue is baffling me.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas x="86" y="30" width="686" height="569" verticalCenter="0" horizontalCenter="0" borderStyle="outset" borderColor="#000000">
<mx:Canvas width="200" height="200" verticalCenter="0" horizontalCenter="0" id="mainCanvas" scaleX="{zoomPanel.value}" scaleY="{zoomPanel.value}" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundColor="#FFFFFF" backgroundAlpha="1.0" borderStyle="inset" borderColor="#FF0000" alpha="1.0">
</mx:Canvas>
</mx:Canvas>
<mx:HSlider x="47" y="7" id="zoomPanel" minimum="0.1" maximum="10" enabled="true" liveDragging="true" width="177" value="1"/>
</mx:Application>
When I use the slider to zoom the inner canvas 'mainCanvas' it zooms correctly but the parent canvas's scrolls does not allow me to see the right and the top edges... Am I missing something obvious here.
any help would be grateful
I'm sort of like a newbie to Flex and this issue is baffling me.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas x="86" y="30" width="686" height="569" verticalCenter="0" horizontalCenter="0" borderStyle="outset" borderColor="#000000">
<mx:Canvas width="200" height="200" verticalCenter="0" horizontalCenter="0" id="mainCanvas" scaleX="{zoomPanel.value}" scaleY="{zoomPanel.value}" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundColor="#FFFFFF" backgroundAlpha="1.0" borderStyle="inset" borderColor="#FF0000" alpha="1.0">
</mx:Canvas>
</mx:Canvas>
<mx:HSlider x="47" y="7" id="zoomPanel" minimum="0.1" maximum="10" enabled="true" liveDragging="true" width="177" value="1"/>
</mx:Application>
When I use the slider to zoom the inner canvas 'mainCanvas' it zooms correctly but the parent canvas's scrolls does not allow me to see the right and the top edges... Am I missing something obvious here.
any help would be grateful