开发者

Want to get cursor position within textInput

I am using textInput within grid using rendrer. I am populating a suggestion box just below the text input field on the basis of typed character and index of text input.Problem is that if i shrink grid column then suggestion box is not populating at the开发者_如何学Go right place so I want global position of cursor in the text input field .


Something like that:

var inputTxt : TextInput = new TextInput;

var x : Number = inputTxt.cursorManager.currentCursorXOffset;

var y : Number = inputTxt.cursorManager.currentCursorYOffset;


Try using 'global coordinate'. This might resolve your problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜