HMD tweaks

This commit is contained in:
Zach Fox 2018-01-10 16:37:47 -08:00
parent b3e3af4ee7
commit 0d137d62c8

View file

@ -739,7 +739,7 @@ Item {
Item { Item {
id: amountContainer; id: amountContainer;
anchors.top: sendToContainer.bottom; anchors.top: sendToContainer.bottom;
anchors.topMargin: 16; anchors.topMargin: 2;
anchors.left: parent.left; anchors.left: parent.left;
anchors.leftMargin: 20; anchors.leftMargin: 20;
anchors.right: parent.right; anchors.right: parent.right;
@ -807,7 +807,7 @@ Item {
anchors.leftMargin: 20; anchors.leftMargin: 20;
anchors.right: parent.right; anchors.right: parent.right;
anchors.rightMargin: 20; anchors.rightMargin: 20;
height: 180; height: 140;
FontLoader { id: firaSansSemiBold; source: "../../../../../fonts/FiraSans-SemiBold.ttf"; } FontLoader { id: firaSansSemiBold; source: "../../../../../fonts/FiraSans-SemiBold.ttf"; }
TextArea { TextArea {
@ -833,7 +833,6 @@ Item {
activeFocusOnTab: true; activeFocusOnTab: true;
// Workaround for no max length on TextAreas // Workaround for no max length on TextAreas
onTextChanged: { onTextChanged: {
optionalMessageCharacterCount.text = optionalMessage.text.length + "/" + optionalMessage.maximumLength;
if (text.length > maximumLength) { if (text.length > maximumLength) {
var cursor = cursorPosition; var cursor = cursorPosition;
text = previousText; text = previousText;
@ -848,6 +847,7 @@ Item {
} }
RalewaySemiBold { RalewaySemiBold {
id: optionalMessageCharacterCount; id: optionalMessageCharacterCount;
text: optionalMessage.text.length + "/" + optionalMessage.maximumLength;
// Anchors // Anchors
anchors.top: optionalMessage.bottom; anchors.top: optionalMessage.bottom;
anchors.topMargin: 2; anchors.topMargin: 2;