开发者

Want to get cursor position within textInput

开发者 https://www.devze.com 2022-12-19 06:13 出处:网络
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 gri

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

精彩评论

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