Thanks for the response. The first method prevents me from having vertical scrolling, so any content I wanted to display via scrolling is now gone. The second method will clip any content that's under the vertical scrollbar. This shouldn't be a problem because that canvas is percentage based and shouldn't have anything there, but since it's confused and always draws itself wider than it has room, there will always be content there. I can add extra padding to that side to compensate, but then when there is no vertical scrollbar, I have uneven padding around my content.
--- In [email protected], Sherif Abdou <[EMAIL PROTECTED]> wrote: > > All right so either you can do > <mx:Canvas width="90%" height="400" clipContent="false" > > <mx:Canvas width="100%" height="440" /> > </mx:Canvas> > or > <mx:Canvas width="90%" height="400" horizontalScrollPolicy="off" verticalScrollPolicy="off" > > <mx:Canvas width="100%" height="440" /> > </mx:Canvas> > Is that what you mean? > > > ----- Original Message ---- > From: dfalling <[EMAIL PROTECTED]> > To: [email protected] > Sent: Wednesday, January 16, 2008 4:42:42 PM > Subject: [flexcoders] container width > parent container's width when vertical scrollbar present > > I've run into a really annoying issue... If I have a container that > is higher than its parent container, it will add not only a vertical > scrollbar, but also a horizontal scrollbar. It does this even if its > width is set to 100% and it has plenty of room to display its > contents. The really frustrating thing about this is that no matter > how wide you resize the container, it will never be able to fit its > contents...it' s always missing the same amount of space. > > To test, simply use the following code. Note the horizontal > scrollbar that will not go away. > > <mx:Canvas width="90%" height="400" > > <mx:Canvas width="100%" height="440" /> > </mx:Canvas> > > > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping >

