aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBramastyo Harimukti <bramastyo.harimukti.santoso@pelagicore.com>2019-02-01 17:54:49 +0100
committerBramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>2019-02-04 09:41:53 +0000
commit8f9a4d88e1b31d49b609cdf3ee814f2ffdb6d08b (patch)
tree500fccd267663ccc5a8cfba271fe067c477fc21b
parent7d9e000dc961c929fdf927b9749f0a3870644146 (diff)
[listitem] fixed misalignment when neptune is resized
Change-Id: I76e5b44888131bef02630b11188da51d6b9afd2c Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
-rw-r--r--plugins/controls/ListItemBasic.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/controls/ListItemBasic.qml b/plugins/controls/ListItemBasic.qml
index 25c4dde0..f6f6722e 100644
--- a/plugins/controls/ListItemBasic.qml
+++ b/plugins/controls/ListItemBasic.qml
@@ -168,7 +168,6 @@ ItemDelegate {
anchors.verticalCenter: subText ? undefined : parent.verticalCenter
IconLabel {
- height: root.icon ? root.height : 0
opacity: Style.opacityHigh
scale: Sizes.scale
spacing: root.spacing
@@ -179,10 +178,14 @@ ItemDelegate {
ColumnLayout {
Layout.fillWidth: true
+ Layout.fillHeight: true
+ spacing: 0
+
Label {
id: listItemText
Layout.fillWidth: true
Layout.leftMargin: indicator ? indicator.width + root.spacing : 0
+ Layout.preferredHeight: root.height / 2
text: root.text
font: root.font
elide: Text.ElideRight
@@ -198,6 +201,7 @@ ItemDelegate {
id: subtitle
Layout.fillWidth: true
Layout.leftMargin: indicator ? indicator.width + root.spacing : 0
+ Layout.preferredHeight: root.height / 2
elide: Text.ElideRight
wrapMode: root.wrapText ? Text.WrapAtWordBoundaryOrAnywhere : Text.NoWrap
horizontalAlignment: Text.AlignLeft
@@ -226,6 +230,7 @@ ItemDelegate {
active: root.accessoryDelegateComponent2 !== null
sourceComponent: root.accessoryDelegateComponent2
}
+
Item {
id: spacerRight
Layout.minimumWidth: Sizes.dp(22)