if (onBottom && oldArea.height != area.height){  layoutItems();
if (onBottom && area.height != oldArea.height) {
private void onResize() {	if (items.length == 0) {		redraw();		return;	}	Rectangle area = super.getClientArea();	if (oldArea == null || oldArea.width == 0 || oldArea.height == 0) {		layoutItems();		redraw();	} else {		if (onBottom && oldArea.height != area.height){			// move tabs up or down if tabs on bottom			layoutItems();			redraw();		} else {			int width = 0;			if (oldArea.width < area.width) {				width = area.width - oldArea.width + borderRight;			} else if (oldArea.width > area.width) {				width = borderRight;						}			redraw(area.x + area.width - width, area.y, width, area.height, false);						int height = 0;			if (oldArea.height < area.height) {				height = area.height - oldArea.height + borderBottom;					}			if (oldArea.height > area.height) {				height = borderBottom;					}			redraw(area.x, area.y + area.height - height, area.width, height, false);						if (oldArea.width != area.width) {				// resize the widths so that all tabs are visible				layoutItems();				redrawTabArea(-1);			}		}	}	oldArea = area;		// resize content	if (selectedIndex != -1) {		Control control = items[selectedIndex].getControl();		if (control != null && !control.isDisposed()) {			control.setBounds(getClientArea());		}	}}