Merge lp:~fboucault/ubuntu-ui-toolkit/list_item_single_control_min_height into lp:ubuntu-ui-toolkit

Proposed by Florian Boucault
Status: Merged
Approved by: Florian Boucault
Approved revision: 589
Merged at revision: 589
Proposed branch: lp:~fboucault/ubuntu-ui-toolkit/list_item_single_control_min_height
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 13 lines (+3/-0)
1 file modified
modules/Ubuntu/Components/ListItems/SingleControl.qml (+3/-0)
To merge this branch: bzr merge lp:~fboucault/ubuntu-ui-toolkit/list_item_single_control_min_height
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Sebastien Bacher (community) Approve
Ubuntu SDK team Pending
Review via email: mp+173214@code.launchpad.net

Commit message

ListItem.SingleControl: Ensure that there is always enough vertical padding around the control.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Looks good to me, note that it doesn't fix the specific issue I reported because I use Base to workaround the margin problem described in https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1194844 (buttons should start/end at the same horizontal position as the labels from standard items)

review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

(note that I can't change the MR status since I'm not in the toolkit team)

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 'modules/Ubuntu/Components/ListItems/SingleControl.qml'
2--- modules/Ubuntu/Components/ListItems/SingleControl.qml 2013-04-22 11:01:36 +0000
3+++ modules/Ubuntu/Components/ListItems/SingleControl.qml 2013-07-05 14:10:30 +0000
4@@ -60,6 +60,9 @@
5 /*! \internal */
6 onPressedChanged: if (control && control.enabled) control.pressed = singleControlListItem.pressed
7
8+ // Ensure that there is always enough vertical padding around the control
9+ __height: control.height + __contentsMargins
10+
11 /*!
12 \internal
13 */

Subscribers

People subscribed via source and target branches

to status/vote changes: