@@ -21,17 +21,16 @@ import Ubuntu.Components 1.3
22Rectangle {
22Rectangle {
24− width: parent.width * 2/3
24+ width: topLayout.childrenRect.width
25− height: parent.height * 2/3
25+ height: topLayout.childrenRect.height
26 color: theme.palette.normal.background
26 color: theme.palette.normal.background
27 radius: units.gu(.5)
27 radius: units.gu(.5)
29− readonly property int maxTextSize: (root.width / 4) - padding
29+ readonly property int maxTextSize: (root.parent.width / 4) - padding
30 readonly property int padding: units.gu(4)
30 readonly property int padding: units.gu(4)
32 GridLayout {
32 GridLayout {
33− anchors.fill: parent
33+ id: topLayout
34− anchors.margins: padding
35 columns: 2
34 columns: 2
36 columnSpacing: padding
35 columnSpacing: padding