Re: [FlexJS] Finding (x,y) position

2017-08-30 Thread Alex Harui
YZcOL >bLfcVcqKIt4VniVOw%3D&reserved=0 > >From: Alex Harui<mailto:aha...@adobe.com.INVALID> >Sent: Wednesday, August 30, 2017 7:02 PM >To: dev@flex.apache.org<mailto:dev@flex.apache.org> >Subject: Re: [FlexJS] Finding (x,y) position > >Hopefully Peter will find a so

RE: [FlexJS] Finding (x,y) position

2017-08-30 Thread Yishay Weiss
-td61120.html#a61330 From: Alex Harui<mailto:aha...@adobe.com.INVALID> Sent: Wednesday, August 30, 2017 7:02 PM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: Re: [FlexJS] Finding (x,y) position Hopefully Peter will find a solution based on your input. But I think a p

Re: [FlexJS] Finding (x,y) position

2017-08-30 Thread Alex Harui
you could add w/2, h/2 if you want to center the drop >>target. >> >>Looking at PointUtils.localToGlobal() it just calls >>element.getBoundingClientRect() (as you suggested) and adds the given x,y >>to the result. >> >>From: Yishay Weiss<mailto:yishayj...@h

Re: [FlexJS] Finding (x,y) position

2017-08-30 Thread Peter Ent
) (as you suggested) and adds the given x,y >to the result. > >From: Yishay Weiss<mailto:yishayj...@hotmail.com> >Sent: Wednesday, August 30, 2017 5:11 PM >To: dev@flex.apache.org<mailto:dev@flex.apache.org> >Subject: RE: [FlexJS] Finding (x,y) position > >I see wh

RE: [FlexJS] Finding (x,y) position

2017-08-30 Thread Yishay Weiss
. From: Yishay Weiss<mailto:yishayj...@hotmail.com> Sent: Wednesday, August 30, 2017 5:11 PM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: RE: [FlexJS] Finding (x,y) position I see what you’re saying. I think we worked around that issue in our app by relying on MouseE

RE: [FlexJS] Finding (x,y) position

2017-08-30 Thread Yishay Weiss
he.org<mailto:dev@flex.apache.org> Subject: Re: [FlexJS] Finding (x,y) position PointUtils works when it has the correct data. For example, if you are over an itemRenderer, say the first one, and want to get its global location, you might do: var pt0:Point = new Point(itemRenderer.x, it

Re: [FlexJS] Finding (x,y) position

2017-08-30 Thread Peter Ent
ishay Weiss" wrote: >Peter, > >Is PointUtils.localToGlobal() not working for you? From what I understand >it takes approach (1). > >From: Peter Ent<mailto:p...@adobe.com.INVALID> >Sent: Tuesday, August 29, 2017 11:29 PM >To: dev@flex.apache.org<mailto:dev@flex.apache.org> &

RE: [FlexJS] Finding (x,y) position

2017-08-30 Thread Yishay Weiss
Peter, Is PointUtils.localToGlobal() not working for you? From what I understand it takes approach (1). From: Peter Ent<mailto:p...@adobe.com.INVALID> Sent: Tuesday, August 29, 2017 11:29 PM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: [FlexJS] Finding (x,y) position

[FlexJS] Finding (x,y) position

2017-08-29 Thread Peter Ent
Hi, While working on drag-and-drop, I've made an "interesting" discovery having to do with the HTML-side's x and y getter functions. Let's say you have a nesting of s: … … (this structure is similar to what is generated for DataGrid). If you attem