width = getBounds().width - x;
width = getBounds().width - x - borders;
void insertItemIntoRow(CoolItem item, Vector row, int x_root, int rowY) {	if (row.size() == 0) {		Point size = item.computeSize(SWT.DEFAULT, SWT.DEFAULT);		item.setBounds(0, rowY, getSize().x, size.y);				row.addElement(item);		return;	}		int x = x_root - toDisplay(new Point(0, 0)).x;		/* Find the insertion index and add the item. */	int index = 0;	for (int i = 0; i < row.size(); i++) {		CoolItem next = (CoolItem) row.elementAt(i);		if (x < next.getBounds().x) break;			index++;	}	row.insertElementAt(item, index);		/* Adjust the width of the item to the left. */	if (index > 0) {		CoolItem left = (CoolItem) row.elementAt(index - 1);		Rectangle leftBounds = left.getBounds();		int newWidth = x - leftBounds.x;		if (newWidth < CoolItem.MINIMUM_WIDTH) {			x += CoolItem.MINIMUM_WIDTH - newWidth;			newWidth = CoolItem.MINIMUM_WIDTH;		}		left.setBounds(leftBounds.x, leftBounds.y, newWidth, leftBounds.height);	}		/* Set the item's bounds. */	int width = 0;	if (index < row.size() - 1) {		CoolItem right = (CoolItem) row.elementAt(index + 1);		width = right.getBounds().x - x;		if (width < CoolItem.MINIMUM_WIDTH) {			moveRight(right, CoolItem.MINIMUM_WIDTH - width);			width = CoolItem.MINIMUM_WIDTH;		}	} else {		width = getBounds().width - x;	}	item.setBounds(x, rowY, width, item.getBounds().height);}