if (index >= itemCount) { index = itemCount - itemCountWhole; } super.setTopIndex(index, true);
public void setTopIndex(int index) {	checkWidget();	int itemCount = getItemCount();	int itemCountWhole = getItemCountWhole();		if (index < 0 || itemCount == 0) {		return;	}	if (index >= itemCount) {		index = itemCount - itemCountWhole;	}	super.setTopIndex(index, true);}