Merge lp:~phablet-team/webbrowser-app/fix-add-tab-label-width into lp:webbrowser-app

Proposed by Ugo Riboni
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 719
Merged at revision: 727
Proposed branch: lp:~phablet-team/webbrowser-app/fix-add-tab-label-width
Merge into: lp:webbrowser-app
Diff against target: 45 lines (+2/-4)
3 files modified
src/app/webbrowser/HistoryView.qml (+0/-1)
src/app/webbrowser/TabsView.qml (+0/-1)
src/app/webbrowser/ToolbarAction.qml (+2/-2)
To merge this branch: bzr merge lp:~phablet-team/webbrowser-app/fix-add-tab-label-width
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Olivier Tilloy Approve
Review via email: mp+235828@code.launchpad.net

Commit message

Fix add tab label to be readable in most localizations.

Description of the change

Fix add tab label to be readable in most localizations

To post a comment you must log in.
Revision history for this message
Olivier Tilloy (osomon) wrote :

That doesn’t look right, now the button doesn’t look aligned to the right anymore (it seems the additional space goes to the right of the button, resulting in an awkward margin).

review: Needs Fixing
719. By Ugo Riboni

Make the item as wide as it needs to be to fix the text instead of a fixed width

Revision history for this message
Olivier Tilloy (osomon) wrote :

That looks much better now, thanks!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) 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/webbrowser/HistoryView.qml'
2--- src/app/webbrowser/HistoryView.qml 2014-08-05 02:50:21 +0000
3+++ src/app/webbrowser/HistoryView.qml 2014-09-24 16:24:58 +0000
4@@ -108,7 +108,6 @@
5 verticalCenter: parent.verticalCenter
6 }
7 height: parent.height - units.gu(2)
8- width: height
9
10 text: i18n.tr("Clear")
11
12
13=== modified file 'src/app/webbrowser/TabsView.qml'
14--- src/app/webbrowser/TabsView.qml 2014-08-21 08:02:21 +0000
15+++ src/app/webbrowser/TabsView.qml 2014-09-24 16:24:58 +0000
16@@ -110,7 +110,6 @@
17 verticalCenter: parent.verticalCenter
18 }
19 height: parent.height - units.gu(2)
20- width: height
21
22 text: i18n.tr("Add")
23
24
25=== modified file 'src/app/webbrowser/ToolbarAction.qml'
26--- src/app/webbrowser/ToolbarAction.qml 2014-07-29 22:00:59 +0000
27+++ src/app/webbrowser/ToolbarAction.qml 2014-09-24 16:24:58 +0000
28@@ -24,6 +24,7 @@
29 property alias text: label.text
30
31 opacity: enabled ? 1.0 : 0.3
32+ width: label.paintedWidth
33
34 Item {
35 anchors {
36@@ -50,8 +51,7 @@
37 id: label
38 anchors {
39 bottom: parent.bottom
40- left: parent.left
41- right: parent.right
42+ horizontalCenter: parent.horizontalCenter
43 }
44 horizontalAlignment: Text.AlignHCenter
45 fontSize: "x-small"

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: