Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    getCursorPosition in TextAreaItem to position SuggestBox

    Isomorphic,

    I had earlier implemented the SuggestBox for TextItem which works fine. I used getPageLeft, getPageTop and getHeight of the textitem to show the suggestbox right below the textitem component. Now I need to implement the same for a TextAreaItem. The earlier approach no longer suffices. I would like to get the current cursor position and place the suggestBox appropriately. Please find the image below. Any way to implement this. It looks odd to show the suggestbox below the textAreaItem which spans multiple lines.

    Thanks.
    Attached Files

    #2
    We don't currently provide such an API and it's not trivial to do so (lots of browser differences in this area). Options are to:

    1. sponsor it

    2. use low-level JSNI / DOM techniques to hack in such support yourself

    Comment

    Working...
    X