TComboBox.this.activate(field);
}
if (updateAction != null) {
- updateAction.DO();
+ updateAction.DO(TComboBox.this);
}
}
}
*/
@Override
public void setWidth(final int width) {
- field.setWidth(width - 3);
- list.setWidth(width);
+ if (field != null) {
+ field.setWidth(width - 3);
+ }
+ if (list != null) {
+ list.setWidth(width);
+ }
super.setWidth(width);
}