Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/orientationNoOp into lp:ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Tim Peeters
Approved revision: 1586
Merged at revision: 1597
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/orientationNoOp
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 51 lines (+11/-7)
2 files modified
src/Ubuntu/Components/1.2/MainView.qml (+1/-1)
src/Ubuntu/Components/1.3/MainView.qml (+10/-6)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/orientationNoOp
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Approve
Zsombor Egri Approve
Loïc Molinari Pending
Review via email: mp+266685@code.launchpad.net

This proposal supersedes a proposal from 2015-07-29.

Commit message

Make automaticOrientation on MainView a no-op

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
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

What is the reason for keeping OrientationHelper inside the MainView?

review: Needs Information
1585. By Cris Dywan

Remove OrientationHelper from MainView 1.3

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

What if we only touch 1.3? I am a bit afraid the 1.2 changes will hurt us. Let's keep the 1.2 intact and work on 1.3 only.

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

43 + anchors.fill: parent
44 + anchors.bottomMargin: mainView.anchorToKeyboard &&

Please group these properties.

Revision history for this message
Cris Dywan (kalikiana) wrote :

Note the bug report. Using OrientationHelper causes bugs when it is active together with shell rotation.

Revision history for this message
Cris Dywan (kalikiana) wrote :

Thank you Launchpad. Now trying again by hand:

> What if we only touch 1.3?
> I am a bit afraid the 1.2 changes will hurt us.
> Let's keep the 1.2 intact and work on 1.3 only.

Note the bug report. Using OrientationHelper causes bugs when it is active together with shell rotation.

1586. By Cris Dywan

Group fill and bottomMargin under anchors

Revision history for this message
Zsombor Egri (zsombi) wrote :

Good to go from my side.

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

Ok, top-approved!

review: Approve
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 'src/Ubuntu/Components/1.2/MainView.qml'
2--- src/Ubuntu/Components/1.2/MainView.qml 2015-04-30 09:27:00 +0000
3+++ src/Ubuntu/Components/1.2/MainView.qml 2015-08-10 15:35:34 +0000
4@@ -26,7 +26,7 @@
5 /*!
6 \qmlproperty bool automaticOrientation
7 */
8- property alias automaticOrientation: canvas.automaticOrientation
9+ property bool automaticOrientation: false
10 property bool useDeprecatedToolbar: true
11
12 /*!
13
14=== modified file 'src/Ubuntu/Components/1.3/MainView.qml'
15--- src/Ubuntu/Components/1.3/MainView.qml 2015-07-23 10:13:48 +0000
16+++ src/Ubuntu/Components/1.3/MainView.qml 2015-08-10 15:35:34 +0000
17@@ -98,24 +98,28 @@
18
19 /*!
20 \qmlproperty bool MainView::automaticOrientation
21+ \deprecated
22
23 Sets whether the application will be automatically rotating when the
24 device is.
25
26- The default value is false.
27+ This property has no significance anymore as the shell rotates.
28 */
29- property alias automaticOrientation: canvas.automaticOrientation
30+ property bool automaticOrientation: false
31
32 /*!
33 \internal
34 Use default property to ensure children added do not draw over the header.
35 */
36 default property alias contentsItem: contents.data
37- OrientationHelper {
38+ Item {
39 id: canvas
40-
41- automaticOrientation: false
42- anchorToKeyboard: mainView.anchorToKeyboard
43+ anchors {
44+ fill: parent
45+ bottomMargin: mainView.anchorToKeyboard &&
46+ UbuntuApplication.inputMethod.visible ?
47+ UbuntuApplication.inputMethod.keyboardRectangle.height : 0
48+ }
49
50 // clip the contents so that it does not overlap the header
51 Item {

Subscribers

People subscribed via source and target branches