if (layoutItems()) {
if (setItemBounds()) {
private void onResize() {	if (items.length == 0) {		redraw();		return;	}		if (layoutItems()) {		redrawTabArea(-1);	}		Rectangle area = super.getClientArea();	if (oldArea == null) {		redraw();	} else {		if (onBottom && area.height != oldArea.height) {			redraw();		} else {			int x1 = Math.min(area.width, oldArea.width);			if (area.width != oldArea.width) x1 -= 10;			int y1 = Math.min(area.height, oldArea.height);			if (area.height != oldArea.height) y1 -= 10;			int x2 = Math.max(area.width, oldArea.width);			int y2 = Math.max(area.height, oldArea.height);					redraw(0, y1, x2 + 10, y2 - y1, false);			redraw(x1, 0, x2 - x1, y2, false);		}	}	oldArea = area;		// resize content	if (selectedIndex != -1) {		Control control = items[selectedIndex].getControl();		if (control != null && !control.isDisposed()) {			control.setBounds(getClientArea());		}	}}