Index: sources/gui/qml/compounds/TouchGrid.qml =================================================================== diff -u -r56ad953ae404fcf6956bd4f76b7a54b12d0285d3 -r20b286ab574a6b8ad25a51aeb3477506f7dafc5d --- sources/gui/qml/compounds/TouchGrid.qml (.../TouchGrid.qml) (revision 56ad953ae404fcf6956bd4f76b7a54b12d0285d3) +++ sources/gui/qml/compounds/TouchGrid.qml (.../TouchGrid.qml) (revision 20b286ab574a6b8ad25a51aeb3477506f7dafc5d) @@ -46,6 +46,8 @@ property real itemsValueLeftMargin : itemWidth / 2 property real itemsUnitLeftMargin : itemWidth / 4 + property bool alignCenter : true + property int rowCount : Math.floor( _root.height / itemHeight ) property int colCount : itemsText.length > rowCount ? Math.ceil(itemsText.length / rowCount) : 1 readonly property int titleTopMargin: 110 @@ -63,7 +65,8 @@ Grid { id: _grid flow: Grid.TopToBottom - anchors.centerIn: _root + anchors.centerIn: _root.alignCenter ? parent : undefined + anchors.top : ! _root.alignCenter ? _root.top : undefined columns : _root.colCount rows : _root.rowCount rowSpacing : 25