Dynamically change PopUpButton's popup width?
anyone know how solve problem when open popupbutton's popup, can dynamically make width larger opening width. have attached example code slider bound width of popup , if play it, notice can drag width smaller cannot drag width larger original popup width. limitation of flex or bug of popupbutton?
thanks advice or workarounds can offer... have attached code below.
<?xml version="1.0" encoding="utf-8"?> <mx:application layout="vertical" backgroundcolor="white" verticalalign="middle" xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:popupbutton id="mypopupbutton" label="open"> <mx:popup> <mx:canvas id="canvaspopup" width="{slider.value}" height="150" horizontalscrollpolicy="off" backgroundcolor="#cccccc"> <mx:hslider id="slider" x="10" y="10" livedragging="true" maximum="400" minimum="50" snapinterval="1" tickinterval="50" value="250"/> </mx:canvas> </mx:popup> </mx:popupbutton> </mx:application>
hi johnnymurphy,
it work if put initial value of slider maximum value of slider...
<mx:hslider id="slider"
x="10" y="10"
livedragging="true" maximum="400" minimum="50" snapinterval="1" tickinterval="50" value="400"/>
thanks,
bhasker
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment