diff options
| author | xiphon <xiphon@protonmail.com> | 2018-12-21 06:21:41 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2018-12-21 06:24:13 +0000 |
| commit | 787234e8388adcdcdef120963cf354a069543b02 (patch) | |
| tree | ee21fa0d0300c64331a8b4f3a200eda39f570d7d /components | |
| parent | bac833c1dd95666e159406f290ad334decee2810 (diff) | |
| download | monzero-gui-787234e8388adcdcdef120963cf354a069543b02.tar.gz monzero-gui-787234e8388adcdcdef120963cf354a069543b02.tar.xz monzero-gui-787234e8388adcdcdef120963cf354a069543b02.zip | |
LineEditMulti: fix showingHeader and padding (empty label case)
Diffstat (limited to 'components')
| -rw-r--r-- | components/LineEditMulti.qml | 4 |
1 files 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 |
