@@ -30,6 +30,7 @@ StyledItem {
30 property bool locked
30 property bool locked
31 property bool waiting
31 property bool waiting
32 property alias boxVerticalOffset: highlightItem.y
32 property alias boxVerticalOffset: highlightItem.y
33+ property string _realName
34 readonly property alias passwordInput: passwordInput
35 readonly property alias passwordInput: passwordInput
35 readonly property int numAboveBelow: 4
36 readonly property int numAboveBelow: 4
@@ -136,6 +137,17 @@ StyledItem {
138 height: root.highlightedHeight
139 height: root.highlightedHeight
141+ // HACK: Work around https://github.com/ubports/unity8/issues/185
142+ text: _realName ? _realName : LightDMService.greeter.authenticationUser
143+ visible: userList.count == 1
147+ topMargin: units.gu(2)
148+ leftMargin: units.gu(2)
141 ListView {
153 ListView {
@@ -193,6 +205,7 @@ StyledItem {
194 FadingLabel {
206 FadingLabel {
195 objectName: "username" + index
207 objectName: "username" + index
208+ visible: userList.count != 1 // HACK Hide username label until someone sorts out the anchoring with the keyboard-dismiss animation, Work around https://github.com/ubports/unity8/issues/185
197 anchors {
210 anchors {
198 left: parent.left
211 left: parent.left
@@ -207,6 +220,8 @@ StyledItem {
207 color: userList.currentIndex !== index ? theme.palette.normal.raised
220 color: userList.currentIndex !== index ? theme.palette.normal.raised
208 : theme.palette.normal.raisedText
221 : theme.palette.normal.raisedText
223+ Component.onCompleted: _realName = realName
210 Behavior on anchors.topMargin { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
225 Behavior on anchors.topMargin { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
212 Rectangle {
227 Rectangle {