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, ColdFusion Developer wrote:

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5441
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to