fixing error message spacing

This commit is contained in:
Wayne Chen 2019-01-16 17:20:01 -08:00
parent 116a15afe8
commit 3ad0f60dd5

View file

@ -76,8 +76,8 @@ Item {
width: parent.width width: parent.width
height: loginErrorMessageTextMetrics.height height: loginErrorMessageTextMetrics.height
anchors { anchors {
bottom: buttons.top; bottom: fields.top;
bottomMargin: 2 * hifi.dimensions.contentSpacing.y; bottomMargin: 1.5 * hifi.dimensions.contentSpacing.y;
left: buttons.left; left: buttons.left;
} }
TextMetrics { TextMetrics {
@ -107,10 +107,6 @@ Item {
loginErrorMessage.wrapMode = Text.NoWrap; loginErrorMessage.wrapMode = Text.NoWrap;
errorContainer.height = loginErrorMessageTextMetrics.height; errorContainer.height = loginErrorMessageTextMetrics.height;
} }
if (completeProfileBody.withOculus) {
errorContainer.anchors.bottom = fields.top;
errorContainer.anchors.bottomMargin = hifi.dimensions.contentSpacing.y;
}
} }
} }