findNearestRowForY method
Implementation
int findNearestRowForY(double y) {
for (int i = 0; i < _rowTops.length; i += 1) {
if (y <= _rowTops[i] + _rowHeights[i]) {
return i;
}
}
// Wasn't above, or within, any row. Must be below the bottom row.
// Return the bottom row.
return _rowTops.length - 1;
}