Merge lp:~cimi/unity8/dashBackground_sourceSize into lp:unity8

Proposed by Andrea Cimitan
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 1714
Merged at revision: 1737
Proposed branch: lp:~cimi/unity8/dashBackground_sourceSize
Merge into: lp:unity8
Diff against target: 10 lines (+2/-0)
1 file modified
qml/Dash/DashBackground.qml (+2/-0)
To merge this branch: bzr merge lp:~cimi/unity8/dashBackground_sourceSize
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+256008@code.launchpad.net

Commit message

Set sourceSize for DashBackground.qml Image

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
None
 * 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 :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Does this actually do something?

I added

    id: moo
onImplicitWidthChanged: console.log("IW", moo, implicitWidth);
onImplicitHeightChanged: console.log("IH", moo, implicitHeight);

and seems the implicitSize is already correct, probably due to the use of the @ image provider in the SDK?

review: Needs Information
Revision history for this message
Albert Astals Cid (aacid) wrote :

After talking with Cimi on IRC this makes sense when the window is resized (i.e desktop case).

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

 * Did CI run pass?
Our autopilot tests still needs some polishing

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

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/DashBackground.qml'
2--- qml/Dash/DashBackground.qml 2014-07-15 15:39:55 +0000
3+++ qml/Dash/DashBackground.qml 2015-04-13 18:31:01 +0000
4@@ -21,4 +21,6 @@
5 fillMode: Image.PreserveAspectCrop
6 horizontalAlignment: Image.AlignRight
7 verticalAlignment: Image.AlignTop
8+ sourceSize.width: anchors.fill.width
9+ sourceSize.height: 0
10 }

Subscribers

People subscribed via source and target branches