← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1546346] Re: [touch] No way to go to beginning of URL in address bar

 

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

** Also affects: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1546346

Title:
  [touch] No way to go to beginning of URL in address bar

Status in ubuntu-ui-toolkit package in Ubuntu:
  New
Status in webbrowser-app package in Ubuntu:
  Confirmed

Bug description:
  If there is a long URL in the address bar and I want to edit the URL,
  I can't do it without a mouse or keyboard! Pressing and dragging to
  the right moves the carrot with my finger to be end of the URL. So far
  so good.

  Doing that same motion but to the left drags the text to the left
  inside the address bar. Effectively showing my the right side of the
  URL again! I have no way to go to the beginning, but two ways to get
  to the end.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1546346/+subscriptions