while (height > maxHeight && lineIndex > 0) {
while (height > maxHeight && lineIndex >= 0) {
int getAvailableHeightAbove(int height) {	int maxHeight = verticalScrollOffset;	if (maxHeight == -1) {		int lineIndex = topIndex - 1;		maxHeight = -topIndexY;		if (topIndexY > 0) {			maxHeight += renderer.getLineHeight(lineIndex--);		}		while (height > maxHeight && lineIndex > 0) {			maxHeight += renderer.getLineHeight(lineIndex--);		}	}	return Math.min(height, maxHeight);}