Merge lp:~osomon/webbrowser-app/tablist-hidden-tabchrome into lp:webbrowser-app

Proposed by Olivier Tilloy
Status: Merged
Approved by: Ugo Riboni
Approved revision: 1304
Merged at revision: 1308
Proposed branch: lp:~osomon/webbrowser-app/tablist-hidden-tabchrome
Merge into: lp:webbrowser-app
Diff against target: 41 lines (+9/-3)
1 file modified
src/app/webbrowser/TabPreview.qml (+9/-3)
To merge this branch: bzr merge lp:~osomon/webbrowser-app/tablist-hidden-tabchrome
Reviewer Review Type Date Requested Status
Ugo Riboni (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+280155@code.launchpad.net

Commit message

Fix the tab preview sometimes covering the tab chrome, in the tabs view.
Offset tab previews by 1px to cover the semi-transparent horizontal line at the bottom of the tab chrome asset.

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: Approve (continuous-integration)
Revision history for this message
Ugo Riboni (uriboni) wrote :

Even though I can't repro the original issue, the code looks sane and the explanations given make sense.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/webbrowser/TabPreview.qml'
2--- src/app/webbrowser/TabPreview.qml 2015-11-17 14:50:31 +0000
3+++ src/app/webbrowser/TabPreview.qml 2015-12-10 15:19:36 +0000
4@@ -19,7 +19,7 @@
5 import QtQuick 2.4
6 import Ubuntu.Components 1.3
7
8-Column {
9+Item {
10 id: tabPreview
11
12 property alias title: chrome.title
13@@ -36,11 +36,11 @@
14 signal selected()
15 signal closed()
16
17-
18 TabChrome {
19 id: chrome
20
21 anchors {
22+ top: parent.top
23 left: parent.left
24 right: parent.right
25 }
26@@ -51,8 +51,14 @@
27 }
28
29 Item {
30- width: parent.width
31+ anchors {
32+ top: chrome.bottom
33+ topMargin: units.dp(-1)
34+ left: parent.left
35+ right: parent.right
36+ }
37 height: parent.height
38+ clip: true
39
40 Rectangle {
41 anchors.fill: parent

Subscribers

People subscribed via source and target branches

to status/vote changes: