From 787234e8388adcdcdef120963cf354a069543b02 Mon Sep 17 00:00:00 2001 From: xiphon Date: Fri, 21 Dec 2018 06:21:41 +0000 Subject: [PATCH] LineEditMulti: fix showingHeader and padding (empty label case) --- components/LineEditMulti.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/LineEditMulti.qml b/components/LineEditMulti.qml index 191498f5..17b50b2e 100644 --- a/components/LineEditMulti.qml +++ b/components/LineEditMulti.qml @@ -78,7 +78,7 @@ ColumnLayout { property var onPaste: function(clipboardText) { item.text = clipboardText; } - property bool showingHeader: true + property bool showingHeader: labelText != "" || copyButton || pasteButton property var wrapMode: Text.NoWrap property alias addressValidation: input.addressValidation property string backgroundColor: "" // mock @@ -150,7 +150,7 @@ ColumnLayout { readOnly: false addressValidation: false Layout.fillWidth: true - topPadding: item.showingHeader ? 10 * scaleRatio : 0 + topPadding: 10 * scaleRatio bottomPadding: 10 * scaleRatio wrapMode: item.wrapMode fontSize: item.fontSize