Lines Matching refs:nrows
329 int nrows = rows;
332 if (nrows > 0) {
333 ncols = (ncomponents + nrows - 1) / nrows;
335 nrows = (ncomponents + ncols - 1) / ncols;
350 insets.top + insets.bottom + nrows*h + (nrows-1)*vgap);
378 int nrows = rows;
381 if (nrows > 0) {
382 ncols = (ncomponents + nrows - 1) / nrows;
384 nrows = (ncomponents + ncols - 1) / ncols;
399 insets.top + insets.bottom + nrows*h + (nrows-1)*vgap);
425 int nrows = rows;
432 if (nrows > 0) {
433 ncols = (ncomponents + nrows - 1) / nrows;
435 nrows = (ncomponents + ncols - 1) / ncols;
447 int totalGapsHeight = (nrows - 1) * vgap;
449 int heightOnComponent = (heightWOInsets - totalGapsHeight) / nrows;
450 int extraHeightAvailable = (heightWOInsets - (heightOnComponent * nrows + totalGapsHeight)) / 2;
453 for (int r = 0, y = insets.top + extraHeightAvailable; r < nrows ; r++, y += heightOnComponent + vgap) {
462 for (int r = 0, y = insets.top + extraHeightAvailable; r < nrows ; r++, y += heightOnComponent + vgap) {