just a little adjustment for the numcells by row calculation in grid view

This commit is contained in:
Luis Ángel San Martín 2014-11-27 21:50:11 +01:00
parent 4d2e42ac8f
commit b0711bec86

View File

@ -267,12 +267,12 @@ Rectangle {
function numCellsPerRow() {
return Math.floor(width / 190);
return Math.floor(width / 185);
}
onWidthChanged: {
var numCells = numCellsPerRow();
var rest = width % 190;
var rest = width % 185;
if(numCells > 0)
{