mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-24 09:24:15 +02:00
Center error text correctly.
This commit is contained in:
parent
b948f24a56
commit
d89cf867d2
1 changed files with 9 additions and 4 deletions
|
@ -161,9 +161,10 @@ Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: loginErrorMessageTextMetrics.height
|
height: loginErrorMessageTextMetrics.height
|
||||||
anchors {
|
anchors {
|
||||||
bottom: loginDialogTextContainer.top;
|
bottom: loginDialogTextContainer.top
|
||||||
bottomMargin: hifi.dimensions.contentSpacing.y;
|
bottomMargin: hifi.dimensions.contentSpacing.y
|
||||||
left: loginDialogTextContainer.left;
|
left: loginDialogTextContainer.left
|
||||||
|
right: loginDialogTextContainer.right
|
||||||
}
|
}
|
||||||
TextMetrics {
|
TextMetrics {
|
||||||
id: loginErrorMessageTextMetrics
|
id: loginErrorMessageTextMetrics
|
||||||
|
@ -176,6 +177,11 @@ Item {
|
||||||
font.family: linkAccountBody.fontFamily
|
font.family: linkAccountBody.fontFamily
|
||||||
font.pixelSize: linkAccountBody.textFieldFontSize
|
font.pixelSize: linkAccountBody.textFieldFontSize
|
||||||
font.bold: linkAccountBody.fontBold
|
font.bold: linkAccountBody.fontBold
|
||||||
|
anchors {
|
||||||
|
top: parent.top
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
}
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
text: ""
|
text: ""
|
||||||
|
@ -191,7 +197,6 @@ Item {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
topMargin: 1.5 * hifi.dimensions.contentSpacing.y
|
topMargin: 1.5 * hifi.dimensions.contentSpacing.y
|
||||||
// horizontalCenter: mainContainer.horizontalCenter
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
Loading…
Reference in a new issue