Measure can always be bigger than the actual width/height, that's what it's
for.

On Fri, Jun 6, 2008 at 11:32 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:

>   No, I mean like zooming a window. I think the problem lies in how I
> tell the TiledCanvas that one of its children is the zoomed one
> (setting "visible" of all the others to false in updateDisplayList).
> Stay tuned.
>
> However, setting that aside, it also seems as though I might be
> commiting a hack if I allow the measured size of the TiledCanvas to
> remain larger than its bounds, even though it allows the scrolling to
> work (at least in the all-tiles-shown case).
>
>
> On Thu, Jun 5, 2008 at 5:46 PM, Josh McDonald <[EMAIL 
> PROTECTED]<dznuts%40gmail.com>>
> wrote:
> > I'm not sure exactly what you're doing, or what you're trying to achieve
> > yet. By "expanding a tile" do you mean you're setting the minimum to be
> > bigger, or you're manually overriding the decisions the base Container
> > implementation makes in updateDisplayList()?
> >
> > On Fri, Jun 6, 2008 at 10:41 AM, Richard Rodseth <[EMAIL 
> > PROTECTED]<rrodseth%40gmail.com>>
> wrote:
> >>
> >> 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]<dznuts%40gmail.com>>
> 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]<rrodseth%40gmail.com>
> >
> >> > 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] <josh%40gfunk007.com>
> >> >
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] <josh%40gfunk007.com>
> >
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to