Gumbo components will probably have a different default behavior.  Not sure 
we'll change the existing components for BC purposes.

My untested suggestion picked up ADDED_TO_STAGE in capture phase, so bubbling 
isn't required.

Mike, I don't recall that conversation, but someday, after we all move to 
Gumbo, I hope we don't hear about this issue and the one about scrollbars 
occluding content again.

Tracy, I'll buy you an egg holder...

-Alex

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael 
Schmalle
Sent: Tuesday, September 09, 2008 8:25 AM
To: [email protected]
Subject: Re: [flexcoders] Re: turn horizontalScrollPolicy and 
verticalScrollPolicy off for all

Alex,

You remember a conversation we had about 1 1/2 years ago about scroll policy 
and min height and width?

You were talking about this same issue. I'm not saying min metrics solve this 
problem but, you were thinking about implementing the scroll policy properties 
differently.

Mike
On Tue, Sep 9, 2008 at 11:14 AM, Doug McCune <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:
filing a bug request for the egg issue (I was going to call it a
feature request, but really, it's just a bad design choice)... maybe
if we yell at them enough, adobe will find an answer.

On Tue, Sep 9, 2008 at 7:23 AM, Tracy Spratt <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:
> It is not that I don't ever want scrolling, just that I would rather have to
> actively enable it on the container I want.
>
> This is a very small issue, like I would really like to have a little flat
> spot on an egg, so it won't roll away...
>
> Tracy
>
>
>
> ________________________________
>
> From: [email protected]<mailto:[email protected]> 
> [mailto:[email protected]<mailto:[email protected]>] On
> Behalf Of Josh McDonald
> Sent: Tuesday, September 09, 2008 1:38 AM
> To: [email protected]<mailto:[email protected]>
> Subject: Re: [flexcoders] Re: turn horizontalScrollPolicy and
> verticalScrollPolicy off for all
>
>
>
> Not much dispatches a bubbling ADDED_TO_STAGE event IIRC :(
>
> However, Container extends UIComponent, so you could use
> UIComponent.mx_internal::dispatchEventHook. But make sure you chain (!!),
> and you can't complain when Alex breaks your code in FX 4 :)
>
> -Josh
>
> On Tue, Sep 9, 2008 at 3:25 PM, Alex Harui <[EMAIL PROTECTED]<mailto:[EMAIL 
> PROTECTED]>> wrote:
>
> How about (untested):
>
>
>
> systemManager.addEventListener(Event.ADDED_TO_STAGE, noscrollbarshandler,
> true);
>
>
>
> function noscrollbarshandler(event:Event):void
>
> {
>
>                 If (event.target is Container)
>
>                 {
>
>                                 horizontalScrollPolicy =
> verticalScrollPolicy = "off";
>
>                 }
>
> }
>
>
>
> From: [email protected]<mailto:[email protected]> 
> [mailto:[email protected]<mailto:[email protected]>] On
> Behalf Of Doug McCune
> Sent: Monday, September 08, 2008 10:17 PM
> To: [email protected]<mailto:[email protected]>
> Subject: Re: [flexcoders] Re: turn horizontalScrollPolicy and
> verticalScrollPolicy off for all
>
>
>
> Could you just use a global CSS stylsheet that set all the scrollbar
> skins to an empty skin (ProgrammaticSkin) by default, and then you
> would have to change the style specifically for any components you
> wanted to actually have scrollbars? Dunno if that would really work or
> not...
>
> Doug
>
> On Mon, Sep 8, 2008 at 9:07 PM, Brendan Meutzner <[EMAIL 
> PROTECTED]<mailto:[EMAIL PROTECTED]>>
> wrote:
>> Agree here as well...
>>
>>
>> On Mon, Sep 8, 2008 at 9:47 PM, Tim Hoff <[EMAIL PROTECTED]<mailto:[EMAIL 
>> PROTECTED]>> wrote:
>>>
>>> I agree, a lot of time can be wasted looking through nested
>>> containers trying to find a scrollbar culprit. wishlist?
>>>
>>> -TH
>>>
>>> --- In [email protected]<mailto:[email protected]>, 
>>> "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>>> >
>>> > I do understand. Maybe I should be more pro-active, but often my
>>> apps
>>> > reach a point where the best way to make sense of the scrollbar
>>> behavior
>>> > is to turn them off everywhere. I, too. would prefer the scroll
>>> > policies to be off by default.
>>> >
>>> >
>>> >
>>> > Tracy
>>> >
>>> >
>>> >
>>> > ________________________________
>>> >
>>> > From: [email protected]<mailto:[email protected]>
>>> [mailto:[email protected]<mailto:[email protected]>] On
>>> > Behalf Of Boon Chew
>>> > Sent: Monday, September 08, 2008 9:24 PM
>>> > To: [email protected]<mailto:[email protected]>
>>> > Subject: RE: [flexcoders] turn horizontalScrollPolicy and
>>> > verticalScrollPolicy off for all
>>> >
>>> >
>>> >
>>> >
>>> > It's kinda a pain to have to subclass every single container used
>>> in the
>>> > app just to turn the policy to off. I was hoping that for policy-
>>> based
>>> > stuff we have an app-wide setting, like
>>> > Application.application.scrollPolicy = "no" that can be overrided by
>>> > individual containers.
>>> >
>>> > Lazy programmers like me in this case will probably resort to monkey
>>> > patching the banana containers...
>>> >
>>> > - boon
>>> >
>>> > --- On Mon, 9/8/08, Gordon Smith <[EMAIL PROTECTED]> wrote:
>>> >
>>> > From: Gordon Smith <[EMAIL PROTECTED]>
>>> > Subject: RE: [flexcoders] turn horizontalScrollPolicy and
>>> > verticalScrollPolicy off for all
>>> > To: "[email protected]<mailto:[email protected]>" 
>>> > <[email protected]<mailto:[email protected]>>
>>> > Date: Monday, September 8, 2008, 5:35 PM
>>> >
>>> > Subclass the containers to set the policies to "off" and use the
>>> > subclasses instead.
>>> >
>>> >
>>> >
>>> > Gordon Smith
>>> >
>>> > Adobe Flex SDK Team
>>> >
>>> >
>>> >
>>> > From: [EMAIL PROTECTED] ups.com<http://ups.com> 
>>> > [mailto:flexcoders@<mailto:flexcoders@> yahoogroups.
>>> com]
>>> > On Behalf Of Boon Chew
>>> > Sent: Monday, September 08, 2008 5:26 PM
>>> > To: flexcoders
>>> > Subject: [flexcoders] turn horizontalScrollPol icy and
>>> > verticalScrollPolic y off for all
>>> >
>>> >
>>> >
>>> > Hi,
>>> >
>>> > Is there a quick way to turn off horizontalScrollPol icy /
>>> > verticalScrollPolic y or prevent them from showing up once and for
>>> all
>>> > for all containers in an app without resorting to patching?
>>> >
>>> > - boon
>>> >
>>>
>>
>>
>>
>> --
>> Brendan Meutzner
>> http://www.meutzner.com/blog/
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> http://flex.joshmcdonald.info/
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
>
>
------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

   Individual Email | Traditional





--
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to