Comment 2 for bug 1546346

Revision history for this message
Olivier Tilloy (osomon) wrote :

I’ve managed to track down the problem to the x coordinate of the TextField not being an integer. This seems to be a bug in the UITK. I can reliably reproduce the issue with the following standalone example:

import QtQuick 2.4
import Ubuntu.Components 1.3
Item {
  TextField {
    id: textField1
    anchors {
      left: parent.left
      leftMargin: 50
      right: parent.right
      rightMargin: 50
      top: parent.top
      topMargin: 200
    }
    text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor."
  }
  TextField {
    anchors {
      left: parent.left
      leftMargin: 50.1
      right: parent.right
      rightMargin: 50
      top: textField1.bottom
      topMargin: 50
    }
    text: textField1.text
  }
}

While the first text field can be scrolled in both directions without problems, the second one cannot be scrolled to the left.

I’m going to work around the problem in webbrowser-app, but this should probably be addressed in the UITK