@@ -30,6 +30,7 @@ StyledItem {
3030 property bool locked
3131 property bool waiting
3232 property alias boxVerticalOffset: highlightItem.y
33+ property string _realName
3334
3435 readonly property int numAboveBelow: 4
3536 readonly property int cellHeight: units.gu(5)
@@ -92,6 +93,18 @@ StyledItem {
9293
9394 height: Math.max(units.gu(15), promptList.height + units.gu(8))
9495 Behavior on height { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
96+
97+ Label {
98+ // HACK: Work around https://github.com/ubports/unity8/issues/185
99+ text: _realName ? _realName : LightDMService.greeter.authenticationUser
100+ visible: userList.count == 1
101+ anchors {
102+ left: parent.left
103+ top: parent.top
104+ topMargin: units.gu(2)
105+ leftMargin: units.gu(2)
106+ }
107+ }
95108 }
96109
97110 ListView {
@@ -143,6 +156,7 @@ StyledItem {
143156
144157 FadingLabel {
145158 objectName: "username" + index
159+ 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
146160
147161 anchors {
148162 left: parent.left
@@ -160,6 +174,8 @@ StyledItem {
160174 color: userList.currentIndex !== index ? theme.palette.normal.raised
161175 : theme.palette.normal.raisedText
162176
177+ Component.onCompleted: _realName = realName
178+
163179 Behavior on anchors.topMargin { NumberAnimation { duration: root.moveDuration; easing.type: Easing.InOutQuad; } }
164180
165181 Rectangle {