i have added a ccombo in a SWT Table. The problem is when user resizes the the table column the CCombo doesnt resize (works fine if the width is increased).

The problem is when shrinks the column then it doesnot resizes properly, the ui looks like the column is shrinked but the ccombo is bigger than width of the Table column.

please see the code below:

// Create the dropdown and add data to it
final CCombo combo = new CCombo(table, SWT.READ_ONLY);
for (int i = 0, n = options.length; i < n; i++) {

// Select the previously selected item from the cell

// Compute the width for the editor
// Also, compute the column width, so that the dropdown fits
editor.minimumWidth = combo.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
table.getColumn(column).setWidth(editor.minimumWid th);

// Set the focus on the dropdown and set into the editor
editor.setEditor(combo, tableitem, 1);