|
|
Home /
Groups /
Adobe Flex
Disable scroll for TileList
Hi there ... I'm a Flex noob; be gentle!ColdFusion Developer 08/06/08 07:57 P Why not just remove any absolute height / width values? This wouldSteve Good 08/06/08 10:07 P Hi there ... I'm a Flex noob; be gentle! I have a TileList set up to display photos. However, my client has requested that there be no scrolling on these photos when they display. They want the app to resize to fit all the photos dynamically, whether there are 2 photos or 200. I'm not quite sure how to do this. Any pointers? Code below. <mx:VBox id="detailPanel" width="680" height="500" x="212" y="0" horizontalScrollPolicy="off" paddingLeft="10"> <mx:TileList id="photoList" columnCount="2" itemRenderer="photo" borderStyle="none" selectionColor="#cccccc" useHandCursor="false" useRollOver="false"/> </mx:VBox> The VBox is within a Panel, that's within a Canvas, if that matters. TIA! Why not just remove any absolute height / width values? This would force the parent container to be resized to fit it's children. <mx:Canvas> <mx:Panel> <mx:VBox id="detailPanel" horizontalScrollPolicy="off" verticalScrollPolicy="off"> <mx:TileList id="photoList" columnCount="2" itemRenderer="photo" borderStyle="none" selectionColor="#cccccc" useHandCursor="false" useRollOver="false"/> </mx:VBox> </mx:Panel> </mx:Canvas> I didn't test the above, but when looking at it in design view it seems to do what you described. Steve Good http://lanctr.com On Aug 6, 2008, at 6:52 PM, ColdFusi ----- Excess quoted text cut - see Original Post for more -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||