public GetMaxVisibleItems ( float height ) : int | ||
height | float | |
return | int |
public int GetMaxVisibleItems(float height)
{
int num = (int) Mathf.Ceil(((height - this.topMargin) - this.bottomMargin) / (this.itemSize.y + this.verticalSpacing));
return (num * this.columns);
}