I am creating a headerRenderer for a datagrid, and the code works as expected, however I need to find the x,y coordinates of the content in the renderer.
I have tried tips/hints online, but nothing works -- it always gives back 0,0 as the coordinates, even when using the function to convert local to global.
Is there some trick to getting the actual x,y coordinates from inside a datagrid header component? I believe the same problem exists for cells in itemrenderers.
var pt:Point = new Point(this.x,this.y);
pt = localToGlobal(pt);
pt.x SHOULD be the global X position, but is ALWAYS zero.
pt.y SHOULD be the global Y position, but is ALWAYS zero.