Merge lp:~aacid/unity8/launcher_folded_quicklist into lp:unity8

Proposed by Albert Astals Cid
Status: Superseded
Proposed branch: lp:~aacid/unity8/launcher_folded_quicklist
Merge into: lp:unity8
Prerequisite: lp:~dandrader/unity8/updateMouseTouchAdaptor
Diff against target: 40 lines (+22/-1)
1 file modified
qml/Launcher/LauncherPanel.qml (+22/-1)
To merge this branch: bzr merge lp:~aacid/unity8/launcher_folded_quicklist
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Unity Team Pending
Review via email: mp+281875@code.launchpad.net

This proposal has been superseded by a proposal from 2016-01-07.

Commit message

Make sure the triangle of the quicklist is in bounds

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2104
http://jenkins.qa.ubuntu.com/job/unity8-ci/7028/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5966
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/443/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1733
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/436
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1628
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1628
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/435
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/434
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4611
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5977
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5977/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26480
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/195/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/441
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/441/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26481

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7028/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote :

As you weren't sure if this fix is the best approach and asked for my opinion, I played around a bit and found something much simpler and actually better (now it sticks to the item's center inatead of only staying within the bounds).

See superseding mp.

Unmerged revisions

2104. By Albert Astals Cid

Make sure the triangle of the quicklist is in bounds

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Launcher/LauncherPanel.qml'
2--- qml/Launcher/LauncherPanel.qml 2015-12-03 10:18:14 +0000
3+++ qml/Launcher/LauncherPanel.qml 2016-01-07 14:43:03 +0000
4@@ -58,6 +58,7 @@
5 }
6
7 Item {
8+ id: buttonShowDashHome
9 objectName: "buttonShowDashHome"
10 width: parent.width
11 height: units.gu(7)
12@@ -628,7 +629,27 @@
13 right: parent.left
14 rightMargin: -units.dp(4)
15 verticalCenter: parent.verticalCenter
16- verticalCenterOffset: -quickList.offset * (root.inverted ? -1 : 1)
17+ verticalCenterOffset: {
18+ var offset;
19+ var maxOffset = (parent.height - height) / 2 - units.gu(2);
20+
21+ // make sure the quicklist triangle is inside the quicklist itself
22+ if (Math.abs(quickList.offset) < maxOffset) {
23+ offset = quickList.offset;
24+ } else if (quickList.offset < 0) {
25+ offset = -maxOffset;
26+ } else {
27+ offset = maxOffset;
28+ }
29+
30+ // Also make sure it's not over the Ubuntu icon
31+ // that is valid space for the quicklist itself but not for the marker
32+ if (quickList.y + quickList.height / 2 - offset < buttonShowDashHome.height + units.gu(2)) {
33+ offset = quickList.y + quickList.height / 2 - buttonShowDashHome.height - units.gu(2);
34+ }
35+
36+ return -offset * (root.inverted ? -1 : 1)
37+ }
38 }
39 height: units.gu(1)
40 width: units.gu(2)

Subscribers

People subscribed via source and target branches