Problem with method getCursorPosition() of TextArea

Hello All!

It was found out one interesting thing:

The method getCursorPosition() of TextArea return different values in IE 9 and Google Chrome
It return correct values in Chrome and wrong in IE9.
For instance: when real cursor position is 3, returned value is 1034 or something like.
It was test at Vaadin version 6.5.7 and 6.7.0


newTextField.addListener(new TextChangeListener() {

                private static final long serialVersionUID = 2278075552023459988L;

                public void textChange(TextChangeEvent event) {
                    AbstractTextField component = (AbstractTextField) event.getComponent();
                    String newText = event.getText();
                    int cursorPos = component.getCursorPosition();

                    autoFormatText(component, newText, cursorPos, helper);
                }
            });

Have anybody ever encountere this phenomenon? Is this bug of IE or Vaadin?

Thanks for the answer
Best regards

Sounds like a bug. You could create
a new issue
about it.

I created the Ticket
#7726