Re: rollOut Issue with child dropdown in panel

2016-09-19 Thread OK
Mihai Chira wrote > I would use event.target. I haven't compiled the code, but I imagine > something like this should work: > > if(event.target == p) > { > removeElement(p); > p = null; > } Unfortunately "target" and "currentTarget" refers always to the "Panel". Olaf -- View this

Re: rollOut Issue with child dropdown in panel

2016-09-19 Thread Mihai Chira
I would use event.target. I haven't compiled the code, but I imagine something like this should work: if(event.target == p) { removeElement(p); p = null; } On 19 September 2016 at 16:21, OK wrote: > Code was eaten by the mailing list, here's just the modified

Re: rollOut Issue with child dropdown in panel

2016-09-19 Thread OK
Code was eaten by the mailing list, here's just the modified function: private function onRollout(event:MouseEvent):void { // Analyze the "relatedObject" property if(event.relatedObject!=null && Group(event.relatedObject).id != "dropDown") { removeElement(p);

Re: rollOut Issue with child dropdown in panel

2016-09-19 Thread OK
>How can this be avoided? The Panel should stay open... This modified "onRollout" code will work but maybe there is some more elegant way. It uses the relatedObject property [1]. Btw: Instead of the Panel maybe the Callout component [2] better suits your needs?. HTH, Olaf [1]