Skip to content

Commit

Permalink
controls: Fix the ListItem height
Browse files Browse the repository at this point in the history
  • Loading branch information
iBelieve committed Aug 21, 2016
1 parent e7f9d6e commit 1f9744f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions controls/ListItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ import Fluid.Controls 1.0
BaseListItem {
id: listItem

implicitHeight: Math.max(subText != "" ? maximumLineCount == 2 ? 72 : 88
: secondaryItem.showing ? secondaryItem.height + Units.smallSpacing * 2 : 48,
leftItem.childrenRect.height + Units.smallSpacing * 2,
rightItem.childrenRect.height + Units.smallSpacing * 2)
implicitHeight: subText != "" ? maximumLineCount == 2 ? 72 : 88
: secondaryItem.showing && text !== "" ? 72 : 48

dividerInset: leftItem.visible ? listItem.height : 0

Expand Down

0 comments on commit 1f9744f

Please sign in to comment.