← Back to team overview

touch-packages team mailing list archive

[Bug 1486008] [NEW] leading actions width is too small making it very difficult to press

 

Public bug reported:

Since a recent update to the ListItem leading actions in
Ubuntu.Components 1.2, where the width of the action was clamped, the
width is too small to press comfortably on a phone resulting in it
missing 9 out of 10 tries. It affects the usability of the action and
may be become a release blocker for apps that have recently switched
over to the new list items.

Sample App

import QtQuick 2.4
import Ubuntu.Components 1.2

MainView {
    applicationName: "testdelete.nik90"
    width: units.gu(100)
    height: units.gu(75)

    Page {
        title: "Swipe to Delete"
        ListItem {
            id: listItem
            anchors.top: parent.top

            Label {
                text: "Swipe me right to delete this listitem"
                wrapMode: Text.WordWrap
                anchors { left: parent.left; leftMargin: units.gu(2); right: parent.right; verticalCenter: parent.verticalCenter }
            }


            leadingActions: ListItemActions {
                actions: [
                    Action {
                        iconName: "delete"
                        onTriggered: listItem.destroy()
                    }
                ]
            }
        }
    }
}

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

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

Title:
  leading actions width is too small making it very difficult to press

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  Since a recent update to the ListItem leading actions in
  Ubuntu.Components 1.2, where the width of the action was clamped, the
  width is too small to press comfortably on a phone resulting in it
  missing 9 out of 10 tries. It affects the usability of the action and
  may be become a release blocker for apps that have recently switched
  over to the new list items.

  Sample App

  import QtQuick 2.4
  import Ubuntu.Components 1.2

  MainView {
      applicationName: "testdelete.nik90"
      width: units.gu(100)
      height: units.gu(75)

      Page {
          title: "Swipe to Delete"
          ListItem {
              id: listItem
              anchors.top: parent.top

              Label {
                  text: "Swipe me right to delete this listitem"
                  wrapMode: Text.WordWrap
                  anchors { left: parent.left; leftMargin: units.gu(2); right: parent.right; verticalCenter: parent.verticalCenter }
              }

  
              leadingActions: ListItemActions {
                  actions: [
                      Action {
                          iconName: "delete"
                          onTriggered: listItem.destroy()
                      }
                  ]
              }
          }
      }
  }

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


Follow ups