I spend a couple of minutes on this. The rules are that, when verticalScrollPolicy="auto" (default), the verticalScrollBar is not factored into the measurements and overlaps content, otherwise it would cause the scrollbar ripple. The simplest change to remove the horizontal scrollbar is to set verticalScrollPolicy="on" on the outer Canvas. That way the verticalScrollBar is factored in. Because the widths are preset in this example, it is safe to do that since you know the verticalScrolLBar has to be on.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dfalling Sent: Thursday, January 31, 2008 1:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: container width > parent container's width when vertical scrollbar present Thanks, I can understand that case as I've seen the scroll bars ripple down before. The only part about this that feels like a bug is how no matter how wide you make the outer container, it's always just a little bit too small to fit its contents. Any help is greatly appreciated...my current hack of disabling horizontal scrolling and adding padding is far from elegant. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > If you comb through the archives you'll see that this topic comes up > once a month. It isn't really a bug and is what we consider to be the > lesser of two evils. If we shrank content area when scrollbars > appeared, what would shrink a child container and cause it to show > scrollbars and all you'd see is a cascade of scrollbars. So we don't, > and you get into this situation instead. I'll try to solve your test > case this weekend.