@@ -29,7 +29,13 @@ Item {
2929 signal showLoginList()
3030
3131 LoginAreaContainer {
32− height: units.gu(30)
32+ readonly property real maxHeight: {
33+ (sessionsList.currentItem.height * sessionsList.model.count) +
34+ (sessionsList.headerItem.height + sessionsList.anchors.margins) -
35+ units.gu(4) //some margins
36+ }
37+
38+ height: maxHeight < parent.height ? maxHeight : parent.height - units.gu(4)
3339 width: parent.width
3440
3541 anchors {
@@ -48,7 +54,7 @@ Item {
4854 margins: units.gu(2)
4955 }
5056
51− height: parent.height - currentItem.height
57+ height: parent.height - currentItem.height - units.gu(2)
5258
5359 model: LightDMService.sessions
5460 header: ListItemLayout {