Merge lp:~schwann/camera-app/camera-vf-centered into lp:camera-app

Proposed by Günter Schwann
Status: Merged
Merged at revision: 215
Proposed branch: lp:~schwann/camera-app/camera-vf-centered
Merge into: lp:camera-app
Diff against target: 13 lines (+3/-1)
1 file modified
camera-app.qml (+3/-1)
To merge this branch: bzr merge lp:~schwann/camera-app/camera-vf-centered
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Bill Filler (community) Approve
Review via email: mp+190143@code.launchpad.net

Commit message

Center the viewfinder in more cases fixes LP: #1179503

Description of the change

Center the viewfinder in more cases fixes LP: #1179503

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
Bill Filler (bfiller) wrote :

approved

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) wrote :
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
PS Jenkins bot (ps-jenkins) wrote :
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 'camera-app.qml'
2--- camera-app.qml 2013-10-02 09:33:11 +0000
3+++ camera-app.qml 2013-10-09 14:19:27 +0000
4@@ -117,7 +117,9 @@
5 VideoOutput {
6 id: viewFinder
7
8- property bool shouldBeCentered: device.isLandscape
9+ property bool shouldBeCentered: device.isLandscape ||
10+ ((viewFinder.width > viewFinderGeometry.width) &&
11+ device.naturalOrientation === "portrait")
12 property real anchoredY: viewFinderGeometry.y * (device.isInverted ? +1 : -1)
13 property real anchoredX: viewFinderGeometry.x * (device.isInverted ? +1 : -1)
14

Subscribers

People subscribed via source and target branches