TextArea.setCursorPosition() doesn't work in all browsers

Hi,

I use a TextArea (Vaadin 6.7.8) to display the end of a log file. Therefore, I put the TextArea in read only mode and I set the cursor to the last possible position. This works fine in FF 12 but all other major browser (IE9, Safari 5.1.5, Chrome 18.0.1025.168m) do not scroll to the end at all or scroll only
near
the end (Opera 11.62).

Is this a bug or do I something wrong?

Here is a code snippet:

  public void loadLogFile()
  {
    LogBean b = new LogBean();
    loggingBO.fillLog(b);
    textArea.setReadOnly(false);
    textArea.setValue(b.getLog());
    if (b.getLog() != null)
    {
      textArea.setCursorPosition(b.getLog().length() - 1);
    }
    textArea.setReadOnly(true);
  }

In IE9 there is in addition also a little display anomaly in displaying the scrollbars (see attached images)

Regards

Andreas
12321.png
12322.png

You should report the issue to
Vaadin Trac
. Thank you :slight_smile:

Thanks for your answer. The ticket is
here
.