bottomBound method
Bottom row index for a specific row
and span
base on the caller anchor.
Implementation
int bottomBound(int row, int span) {
switch (vertical) {
case VerticalAnchor.top:
return row + span - 1;
case VerticalAnchor.bottom:
return row;
}
}