Merge lp:~vthompson/ubuntu-terminal-app/fix-1380812 into lp:ubuntu-terminal-app

Proposed by Victor Thompson
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 🦄
Approved revision: 176
Merged at revision: 192
Proposed branch: lp:~vthompson/ubuntu-terminal-app/fix-1380812
Merge into: lp:ubuntu-terminal-app
Diff against target: 35 lines (+15/-2)
1 file modified
src/app/qml/ubuntu-terminal-app.qml (+15/-2)
To merge this branch: bzr merge lp:~vthompson/ubuntu-terminal-app/fix-1380812
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Filippo Scognamiglio Approve
Alan Pope 🍺🐧🐱 🦄 Pending
Review via email: mp+241376@code.launchpad.net

Commit message

* Call header hide or show when changing orientation.

Description of the change

Also call header hide or show when changing orientation.

Could someone also verify that lp:1288343 is fixed with this change? Adding popey as a required reviewer.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Filippo Scognamiglio (flscogna) :
review: Approve
176. By Victor Thompson

Seemingly fix the header being covered when the app is started on a Nexus 7, need to know why

Revision history for this message
Victor Thompson (vthompson) wrote :

I was able to verify the fix for lp:1288343 on my Nexus 7, however, the behavior in lp:1380812 occurs when the app is started--without rotating the screen on the Nexus 7. I've added a work around for this, but this I'm not sure why the work around fixes the issue.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
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/app/qml/ubuntu-terminal-app.qml'
2--- src/app/qml/ubuntu-terminal-app.qml 2014-09-20 10:54:37 +0000
3+++ src/app/qml/ubuntu-terminal-app.qml 2014-11-19 03:42:12 +0000
4@@ -32,16 +32,29 @@
5 title: i18n.tr("Terminal")
6
7 onWidthChanged: {
8- header.visible = width < height;
9+ if (width < height) {
10+ header.visible = true
11+ header.show()
12+ } else {
13+ header.visible = false
14+ header.hide()
15+ }
16 }
17
18 onHeightChanged: {
19- header.visible = width < height;
20+ if (width < height) {
21+ header.visible = true
22+ header.show()
23+ } else {
24+ header.visible = false
25+ header.hide()
26+ }
27 }
28
29 Terminal {
30 id: pgTerm
31 objectName: "pgTerm"
32+ Component.onCompleted: header.visible = false
33 }
34
35 head.actions: [

Subscribers

People subscribed via source and target branches