Merge lp:~osomon/webbrowser-app/fix-suggestions-height into lp:webbrowser-app

Proposed by Olivier Tilloy
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 146
Merged at revision: 153
Proposed branch: lp:~osomon/webbrowser-app/fix-suggestions-height
Merge into: lp:webbrowser-app
Diff against target: 44 lines (+11/-12)
2 files modified
src/Ubuntu/Browser/Browser.qml (+11/-0)
src/Ubuntu/Browser/Chrome.qml (+0/-12)
To merge this branch: bzr merge lp:~osomon/webbrowser-app/fix-suggestions-height
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Renato Araujo Oliveira Filho (community) Approve
Review via email: mp+166210@code.launchpad.net

Commit message

Ensure the suggestions list never goes offscreen.

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
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)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

works nice.

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) :
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/Browser/Browser.qml'
2--- src/Ubuntu/Browser/Browser.qml 2013-05-24 15:36:04 +0000
3+++ src/Ubuntu/Browser/Browser.qml 2013-05-29 10:35:32 +0000
4@@ -352,6 +352,17 @@
5 }
6 }
7
8+ Suggestions {
9+ visible: panel.chrome && panel.chrome.addressBar.activeFocus && (count > 0)
10+ anchors {
11+ bottom: panel.top
12+ horizontalCenter: parent.horizontalCenter
13+ }
14+ width: panel.width - units.gu(5)
15+ height: Math.min(contentHeight, panel.y - units.gu(2))
16+ onSelected: browser.url = url
17+ }
18+
19 KeyboardRectangle {
20 id: osk
21 }
22
23=== modified file 'src/Ubuntu/Browser/Chrome.qml'
24--- src/Ubuntu/Browser/Chrome.qml 2013-05-20 11:45:18 +0000
25+++ src/Ubuntu/Browser/Chrome.qml 2013-05-29 10:35:32 +0000
26@@ -105,18 +105,6 @@
27 fgColor: "white"
28 }
29
30- Suggestions {
31- id: suggestions
32- visible: addressBar.activeFocus && (count > 0)
33- anchors {
34- bottom: parent.top
35- horizontalCenter: parent.horizontalCenter
36- }
37- width: parent.width - units.gu(5)
38- height: Math.min(contentHeight, units.gu(40))
39- onSelected: chrome.urlValidated(url)
40- }
41-
42 Image {
43 anchors.bottom: parent.top
44 anchors.left: parent.left

Subscribers

People subscribed via source and target branches

to status/vote changes: