The docs say: If the horizontalScrollPolicy is ScrollPolicy.AUTO, the horizontal scroll bar appears when all of the following are true:
* One of the container's children extends beyond the left edge or right edge of the container. * The clipContent property is true. * The width and height of the container are large enough to reasonably accommodate a scroll bar. And sure enough, if I set a static minimum on tiledView, I get the desired effect. If I expand a tile and change the minimum to something else, any idea which invalidate method(s) I should call? On Thu, Jun 5, 2008 at 4:57 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > If you want to be able to measure your subcomponents, always use > setActualSize. I learned that the hard way recently :) > > I've recently been doing a whole bunch of measure and updatedisplaylist > voodoo for a custom container, so I'll be slightly helpful! > > -Josh > > On Fri, Jun 6, 2008 at 9:36 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote: >> >> Clearly I haven't mastered layout and measurement. >> >> I've implemented a custom component which tiles its children in >> equal-sized tiles, but also has a state (not a flex state) where one >> tile fills the component. >> >> I subclassed Canvas and set the sizes and positions of children in >> updateDisplayList. I didn't override measure(), but it works very >> nicely, resizing children smoothly as it is resized. >> >> Now, however, I would like to set a minimum width and height for the >> tiled view, after which scroll bars appear. The minimum will be >> different if the component is in the one-tile-expanded case. >> >> Can I do this without further mods to my component? >> Should my updateDisplayList be calling setActualSize rather than >> setting x,y,width, height? >> Should I have a measure() implementation? >> How would it differ from the inherited one? >> In a scenario like the following, would I set the minWidth and >> minHeight on the parent or child? >> Or, to ask another way, do the the scrollpolicy and minimum properties >> always belong on the same component? >> >> <mx:Canvas id="scrollableArea" width="100%" height="100%" >> verticalScrollPolicy="auto" >> horizontalScrollPolicy="auto"> >> >> <view:TiledCanvas id="tiledView" >> width="100%" height="100%" >> > >> </view:TiledCanvas> >> </mx:Canvas> >> >> Thanks. > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] >