BTW, mx:List and subclasses have a different behavior in this regard. The scrollbar is always inside the bound of the List based component.
--- In [email protected], "gwangdesign" <gwangdes...@...> wrote: > > Hi, > > I am trying to get the scrollbar for a container (can be either a Canvas or > VBox) "inside" my background image. Basically my Canvas has a background > image which I set background-size to "100%". Flex scales the background image > to fit the whole component when there is no scroll bar. But when the scroll > bar appears, the image "shrinks" to allow space for the scroll bar. > > So say if the Canvas has a width of 200 px, the background image has a width > of 200 px when there is no scrollbar. If the scrollbar is 16 pixels wide, the > background image would become 200 - 16 = 184 px, as opposed to staying 200px. > > I think I can get around this by using nested containers. Just to want to > make sure that I am not missing anything obvious. > > Thanks. >

