if (true) return;  int newVerticalOffset = Math.max(0, content.getLineCount() * lineHeight - getClientArea().height); if (newVerticalOffset < verticalScrollOffset) {   setVerticalScrollOffset(newVerticalOffset, true);
if (isFixedLineHeight()) { int newVerticalOffset = Math.max(0, content.getLineCount() * lineHeight - getClientArea().height); if (newVerticalOffset < verticalScrollOffset) {   setVerticalScrollOffset(newVerticalOffset, true); } } else { int clientAreaHeight = getClientArea().height; int bottomIndex = getLineIndex(clientAreaHeight); int height = getLinePixel(bottomIndex) + lineCache.getLineHeight(bottomIndex); if (clientAreaHeight > height) { height = clientAreaHeight - height; height = Math.min(verticalScrollOffset, height); setVerticalScrollOffset(verticalScrollOffset - height, true); }
void claimBottomFreeSpace() {	//TODO the function can be very expensive for variable line height	//     find alternative math for this problem, disable it till there.	if (true) return;		int newVerticalOffset = Math.max(0, content.getLineCount() * lineHeight - getClientArea().height);	if (newVerticalOffset < verticalScrollOffset) {		// Scroll up so that empty lines below last text line are used.		// Fixes 1GEYJM0		setVerticalScrollOffset(newVerticalOffset, true);	}}