Merge lp:~ahayzen/ubuntu-ui-toolkit/fix-swipe-delete-001 into lp:ubuntu-ui-toolkit

Proposed by Andrew Hayzen
Status: Merged
Approved by: Tim Peeters
Approved revision: 900
Merged at revision: 916
Proposed branch: lp:~ahayzen/ubuntu-ui-toolkit/fix-swipe-delete-001
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 32 lines (+3/-5)
1 file modified
modules/Ubuntu/Components/ListItems/Empty.qml (+3/-5)
To merge this branch: bzr merge lp:~ahayzen/ubuntu-ui-toolkit/fix-swipe-delete-001
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Approve
Review via email: mp+199906@code.launchpad.net

Commit message

* Fixed text not aligned at vertical centre if the listitem height has changed dynamically
* Fixed no removeItemAnimation if the listitem height has been set

Description of the change

Fixed an issue with the text in the background indicator not being vertically aligned in the centre if the list item has had its height dynamically changed [1].

Fixed an issue where there is no remove animation if the height of the list item has been set.

1 - http://ubuntuone.com/1tgxcAqlKOwspASY506NBs (Left shows with patch, right shows without)

To post a comment you must log in.
Revision history for this message
Tim Peeters (tpeeters) wrote :

Both for the Image and the Label is not immediately clear to my why the changes in the anchors change something. The image has fillMode: Image.Pad, which I think should add padding above and below the icon, thus positioning it in vertical center. But anchoring in verticalCenter explicitly is better.

For the Label, it has "verticalAlignment: Text.AlignVCenter". Why doesn't that work? Perhaps text is repositioned too late (after it is shown).

Can you report the positioning issue as a bug (maybe with a small code example) to make it more clear? We'll link the bug to this MR then so that we know which issue was fixed when.

28 - property: "implicitHeight"
29 + property: "height,implicitHeight"

height should depend on implicitHeight. Why do you need it?

review: Needs Information
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

I've reported the bug 1263186 and linked it to the branch.

For the animation, it wouldn't appear to do anything on the list items which have their height set unless I added "height", I'll try it again to confirm that this is correct.

Revision history for this message
Tim Peeters (tpeeters) wrote :

29 + property: "height,implicitHeight"

animating height would be enough

Revision history for this message
Tim Peeters (tpeeters) wrote :

Looks good.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Autolanding.
Approved revid is not set in launchpad. This is most likely a launchpad issue and re-approve should fix it. There is also a chance (although a very small one) this is a permission problem of the ps-jenkins bot.
http://jenkins.qa.ubuntu.com/job/ubuntu-ui-toolkit-autolanding/543/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/2056
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/1963
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-ui-toolkit-trusty-amd64-autolanding/146
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-ui-toolkit-trusty-armhf-autolanding/146
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-ui-toolkit-trusty-armhf-autolanding/146/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/1803
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/2056
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/2056/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/1963
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/1963/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/4436
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/2784

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

This still hasn't landed? Did the property name change break something?

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

I don't know why autolanding is failing here. I duplicated the MR here: https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/fix-swipe-delete-001/+merge/201784 to see if the continuous-integration tests fail there.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/Ubuntu/Components/ListItems/Empty.qml'
2--- modules/Ubuntu/Components/ListItems/Empty.qml 2013-12-10 16:13:17 +0000
3+++ modules/Ubuntu/Components/ListItems/Empty.qml 2014-01-14 12:35:53 +0000
4@@ -377,8 +377,7 @@
5 source: "artwork/delete.png"
6 fillMode: Image.Pad
7 anchors {
8- top: parent.top
9- bottom: parent.bottom
10+ verticalCenter: parent.verticalCenter
11 }
12 width: units.gu(5)
13 }
14@@ -386,8 +385,7 @@
15 text: i18n.tr("Delete")
16 verticalAlignment: Text.AlignVCenter
17 anchors {
18- top: parent.top
19- bottom: parent.bottom
20+ verticalCenter: parent.verticalCenter
21 }
22 width: units.gu(7)
23 fontSize: "medium"
24@@ -450,7 +448,7 @@
25 running: false
26 UbuntuNumberAnimation {
27 target: emptyListItem
28- property: "implicitHeight"
29+ property: "height"
30 to: 0
31 }
32 ScriptAction {

Subscribers

People subscribed via source and target branches

to status/vote changes: