fix(CreateCategoryPopup): ensure validation message is position correctly
Fixes #2973
This commit is contained in:
parent
cd37fa8e58
commit
ee7fe04bd1
|
@ -629,8 +629,7 @@ QtObject {
|
|||
let errMsg = ""
|
||||
|
||||
if(validation & Utils.Validate.NoEmpty && str === "") {
|
||||
//% "You need to enter a %1"
|
||||
errMsg = qsTrId("you-need-to-enter-a--1").arg(fieldName)
|
||||
errMsg = qsTr("You need to enter a %1").arg(fieldName)
|
||||
}
|
||||
|
||||
if(validation & Utils.Validate.TextLength && str.length > limit) {
|
||||
|
|
|
@ -178,12 +178,12 @@ Item {
|
|||
text: validationError
|
||||
anchors.top: inputField.bottom
|
||||
anchors.topMargin: validationErrorTopMargin
|
||||
anchors.right: inputField.right
|
||||
selectByMouse: true
|
||||
readOnly: true
|
||||
font.pixelSize: 12
|
||||
height: 16
|
||||
color: validationErrorColor
|
||||
width: inputField.width
|
||||
wrapMode: TextEdit.Wrap
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue