if (oldWidth != clientAreaWidth) { wordWrapResize(oldWidth);
if (oldWidth != clientAreaWidth) { lineCache.reset(0, content.getLineCount(), false); lineCache.calculateClientArea(); super.redraw();
void handleResize(Event event) {	int oldHeight = clientAreaHeight;	int oldWidth = clientAreaWidth;		Rectangle clientArea = getClientArea();	clientAreaHeight = clientArea.height;	clientAreaWidth = clientArea.width;	/* Redraw the old or new right/bottom margin if needed */	if (oldWidth != clientAreaWidth) {		if (rightMargin > 0) {			int x = (oldWidth < clientAreaWidth ? oldWidth : clientAreaWidth)- rightMargin; 			redraw(x, 0, rightMargin, oldHeight, false);		}	}	if (oldHeight != clientAreaHeight) {		if (bottomMargin > 0) {			int y = (oldHeight < clientAreaHeight ? oldHeight : clientAreaHeight)- bottomMargin; 			redraw(0, y, oldWidth, bottomMargin, false);		}	}	if (wordWrap) {		if (oldWidth != clientAreaWidth) {				wordWrapResize(oldWidth);		}	} else if (clientAreaHeight > oldHeight) {//		int lineCount = content.getLineCount();//		int oldBottomIndex = topIndex + oldHeight / lineHeight;//		int newItemCount = Compatibility.ceil(clientAreaHeight - oldHeight, lineHeight);//		oldBottomIndex = Math.min(oldBottomIndex, lineCount);//		newItemCount = Math.min(newItemCount, lineCount - oldBottomIndex);//		lineCache.calculate(oldBottomIndex, newItemCount);		lineCache.calculateClientArea();	}	setScrollBars();	claimBottomFreeSpace();	claimRightFreeSpace();		if (oldHeight != clientAreaHeight) {		calculateTopIndex();	}}