diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-12-26 16:08:10 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-12-26 16:08:10 -0600 |
| commit | 1f2d2db1feba6164aa7fd3eb6bb1112a0877378c (patch) | |
| tree | ae4ffa6759cc978f406af861a4c2e50af21fdea1 /components/LineEditMulti.qml | |
| parent | 342f85a68f6d0e3833a0f03a89ae72ba7be0919c (diff) | |
| parent | 787234e8388adcdcdef120963cf354a069543b02 (diff) | |
| download | monzero-gui-1f2d2db1feba6164aa7fd3eb6bb1112a0877378c.tar.gz monzero-gui-1f2d2db1feba6164aa7fd3eb6bb1112a0877378c.tar.xz monzero-gui-1f2d2db1feba6164aa7fd3eb6bb1112a0877378c.zip | |
Merge pull request #1853
787234e LineEditMulti: fix showingHeader and padding (empty label case) (xiphon)
Diffstat (limited to 'components/LineEditMulti.qml')
| -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 |
