If the list's renderers are too wide, it will put up a scrollbar. You should try to use variableRowHeight and wordWrap to get the renderers to wrap their text so they'll fit in the List.
If the Canvas has scrollbars, it is because the List is too wide for the canvas. However, setting minWidth=0 on the List should allow it to shrink to fit the Canvas, but then the List may have scrollbars if it is too narrow for its renderers. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Gautam Sent: Thursday, February 22, 2007 9:19 PM To: [email protected] Subject: [flexcomponents] Fit components without scrollbars Hi, I am using itemrenderer in a list and this list is inside a canvas, which I am using in my application as a component. I am providing width and height in percentages for all the components. The aim is to prevent the scrollbar from appearing. However, I am not able to prevent scroll bars from appearing. Only way scrollbars don't appear is if i give the component a very large width, but this doesn't help as the component over shoots the amount of space i have provided in my application. I want these components to shrink and at no point a scroll bar should come. I tried using horizontalScrollBarPolicy="off" but doing this hides a part of my component. Any idea where the problem is? Thanks & Regards, Gautam.
