Merge lp:~mzanetti/unity8/keep-appImage-aspect-ratio into lp:~unity-team/unity8/new-scopes

Proposed by Michael Zanetti
Status: Merged
Merged at revision: 690
Proposed branch: lp:~mzanetti/unity8/keep-appImage-aspect-ratio
Merge into: lp:~unity-team/unity8/new-scopes
Diff against target: 27 lines (+3/-5)
1 file modified
qml/Dash/Apps/RunningApplicationTile.qml (+3/-5)
To merge this branch: bzr merge lp:~mzanetti/unity8/keep-appImage-aspect-ratio
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Pending
Unity Team Pending
Review via email: mp+207714@code.launchpad.net

This proposal supersedes a proposal from 2014-02-21.

Description of the change

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

https://code.launchpad.net/~mzanetti/unity-mir/expose-appimage-sourceSize/+merge/207626

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

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?

Yeah, I did.. But no, no design review. Seems quite obvious that this is wanted by design. In any case, we want it for MWC and afterwards this code will be dropped again in favor of the right edge rework.

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

FAILED: Continuous integration, rev:730
http://jenkins.qa.ubuntu.com/job/unity8-ci/2374/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3390
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3044
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1244
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/895
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/899
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/899/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/895
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/2986
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3392
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3392/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3046
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3046/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5441
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4176

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

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/Apps/RunningApplicationTile.qml'
2--- qml/Dash/Apps/RunningApplicationTile.qml 2014-02-18 18:09:43 +0000
3+++ qml/Dash/Apps/RunningApplicationTile.qml 2014-02-21 17:26:50 +0000
4@@ -63,11 +63,9 @@
5 horizontalCenter: parent.horizontalCenter
6 }
7
8- // FIXME: width and height should be defined according to the
9- // application window's aspect ratio.
10- width: (application.stage === ApplicationInfo.MainStage && __sideStageEnabled) ?
11- units.gu(22) : units.gu(11)
12 height: (__sideStageEnabled) ? units.gu(22) : units.gu(19)
13+ width: applicationImage.width
14+
15 radius: "medium"
16 image: applicationImage
17 }
18@@ -75,8 +73,8 @@
19 ApplicationImage {
20 id: applicationImage
21 source: ApplicationManager.findApplication((application) ? application.appId : "")
22- width: shapedApplicationImage.width
23 height: shapedApplicationImage.height
24+ width: Math.min(height, height * sourceSize.width / sourceSize.height)
25 }
26
27 UbuntuShape {

Subscribers

People subscribed via source and target branches

to all changes: