diff options
author | Egor Nemtsev <enemtsev@luxoft.com> | 2019-12-13 16:58:01 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2019-12-13 14:42:27 +0000 |
commit | 604003894b2e4c114f9cd21e0f7ff8863f7a6587 (patch) | |
tree | 0554a1adb0e344e38363b15c7ec55fcf17af1f9b /plugins | |
parent | 77d2c9a0e9eb1f7352b07c6a1169716ce61ac099 (diff) |
[sysui] update ListItemBasic item to align icons correctly
Task-number: AUTOSUITE-1378
Change-Id: I3aa3ac5ba2f1b2761bb514d7187d6062e6f1bf14
Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/controls/ListItemBasic.qml | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/plugins/controls/ListItemBasic.qml b/plugins/controls/ListItemBasic.qml index 28fc94de..6027d691 100644 --- a/plugins/controls/ListItemBasic.qml +++ b/plugins/controls/ListItemBasic.qml @@ -164,17 +164,23 @@ ItemDelegate { Item { //spacer, to trigger 24px margin to the left of first element - width: Sizes.dp(1) - height: parent.height + implicitWidth: Sizes.dp(1) + Layout.fillHeight: true } - IconLabel { - opacity: Style.opacityHigh - scale: Sizes.scale - spacing: root.spacing - mirrored: root.mirrored - display: root.display - icon: root.icon + Item { + Layout.fillHeight: true + implicitWidth: root.implicitHeight + visible: root.icon.source.toString() !== "" || root.icon.name !== "" + IconLabel { + opacity: Style.opacityHigh + scale: Sizes.scale + spacing: root.spacing + mirrored: root.mirrored + display: root.display + icon: root.icon + anchors.centerIn: parent + } } ColumnLayout { |