mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
just a little adjustment for the numcells by row calculation in grid view
This commit is contained in:
parent
4d2e42ac8f
commit
b0711bec86
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user