@@ -21,17 +21,16 @@ import Ubuntu.Components 1.3
2121
2222Rectangle {
2323 id: root
24− width: parent.width * 2/3
25− height: parent.height * 2/3
24+ width: topLayout.childrenRect.width
25+ height: topLayout.childrenRect.height
2626 color: theme.palette.normal.background
2727 radius: units.gu(.5)
2828
29− readonly property int maxTextSize: (root.width / 4) - padding
29+ readonly property int maxTextSize: (root.parent.width / 4) - padding
3030 readonly property int padding: units.gu(4)
3131
3232 GridLayout {
33− anchors.fill: parent
34− anchors.margins: padding
33+ id: topLayout
3534 columns: 2
3635 columnSpacing: padding
3736