House of Fusion
Home of the ColdFusion Community

Search flex

December 04, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  Adobe Flex

Disable scroll for TileList

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
ColdFusion Developer
08/06/2008 07:57 PM

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!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Steve Good
08/06/2008 10:07 PM

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 -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists