Re: [FlexJS] findPopupHost issue

2017-07-21 Thread Josh Tynjala
This type of issue used to get me all the time with the classic Flex SDK. I'd have some subclass of Panel or something, but I'd have some kind of selectedItem property on it that dispatched Event.CHANGE. If I had a child that was a Slider or something, the slider's Event.CHANGE would bubble, and

Re: [FlexJS] findPopupHost issue

2017-07-21 Thread Alex Harui
I think we can use setParentTarget to get bubbling to work reliably with custom events, but as Peter said, I don't think we want to set up parentTarget's just-in-case. Bubbling custom events is not a recommended practice as was mentioned in some other thread recently. Imagine if you had a Panel

Re: [FlexJS] findPopupHost issue

2017-07-21 Thread Peter Ent
I needed events to bubble for the drag and drop work. While that was fine for the Flash Player, the FlexJS/Google/Browser event mix didn't work. Alex suggested I used setParentTarget on the event to work up the tree and then the event would be dispatched at each level, thus mimicking bubbling. I

Re: [FlexJS] findPopupHost issue

2017-07-21 Thread Harbs
Bubbling does not work very well in FlexJS in general. When you can rely on native browser event bubbling, it usually works okay, but custom events don’t bubble. > On Jul 21, 2017, at 1:49 AM, Justin Mclean wrote: > > Hi, > >> The issue was that the TitleBar was

Re: [FlexJS] findPopupHost issue

2017-07-20 Thread Justin Mclean
Hi, > The issue was that the TitleBar was dispatching "close" with bubbles=true. > This works fine on SWF but not on the HTML platform without some extra > work. So I just had PanelView intercept the event and dispatch one from > its strand. Out of interest is this because of a missing

Re: [FlexJS] findPopupHost issue

2017-07-20 Thread Peter Ent
t; <[hidden email] >>>> <http:///user/SendEmail.jtp?type=node=63395=0>> wrote: >>>> >>>> >Even if the Application instance isn’t an IPopUpHost the method will >>>> just >>>> >return null, so the effect is the same as jus

Re: [FlexJS] findPopupHost issue

2017-07-20 Thread Peter Ent
?type=node=63395=0>> wrote: >>> >>> >Even if the Application instance isn’t an IPopUpHost the method will >>> just >>> >return null, so the effect is the same as just doing (appInstance as >>> >IPopUpHost). I suspect the method is being mi

Re: [FlexJS] findPopupHost issue

2017-07-19 Thread PKumar
the method will >> just >> >return null, so the effect is the same as just doing (appInstance as >> >IPopUpHost). I suspect the method is being misused rather than there >> >being a problem with the method. >> > >> >From: Alex Harui<mailto:[hidden email] >

Re: [FlexJS] findPopupHost issue

2017-07-19 Thread PKumar
e as > >IPopUpHost). I suspect the method is being misused rather than there > >being a problem with the method. > > > >From: Alex Harui<mailto:[hidden email] > <http:///user/SendEmail.jtp?type=node=63395=1>> > >Sent: Tuesday, July 18, 2017 8:33 AM > &g

Re: [FlexJS] findPopupHost issue

2017-07-18 Thread Alex Harui
ct is the same as just doing (appInstance as >IPopUpHost). I suspect the method is being misused rather than there >being a problem with the method. > >From: Alex Harui<mailto:aha...@adobe.com.INVALID> >Sent: Tuesday, July 18, 2017 8:33 AM >To: dev@flex.apache.org<

RE: [FlexJS] findPopupHost issue

2017-07-17 Thread Yishay Weiss
LID> Sent: Tuesday, July 18, 2017 8:33 AM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: Re: [FlexJS] findPopupHost issue FWIW, it may not be safe to assume that Application will always be an IPopUpHost, hence the utility function. Thanks, -Alex On 7/17/17, 9:59

Re: [FlexJS] findPopupHost issue

2017-07-17 Thread Alex Harui
FWIW, it may not be safe to assume that Application will always be an IPopUpHost, hence the utility function. Thanks, -Alex On 7/17/17, 9:59 PM, "piotrz" wrote: >Hi Yishay, > >That's a good point - Application is itself an IPopupHost. I've asked him >what is the use

RE: [FlexJS] findPopupHost issue

2017-07-17 Thread piotrz
Hi Yishay, That's a good point - Application is itself an IPopupHost. I've asked him what is the use case for his host popup search. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

RE: [FlexJS] findPopupHost issue

2017-07-17 Thread Yishay Weiss
I think there’s confusion over what a popup host is. A popup host is where you would add an IPopUp. UIUtils.findPopUpHost(myComp as IUIBase) finds the closest ancestor for myComp to which a popup can be added. These lines from ComboBoxView demonstrate the usage: var