- // Resize the text field
- textField.setWidth(resize.getWidth() - 2);
- textField.setHeight(resize.getHeight() - 2);
- textField.reflow();
+ // Resize the text field TODO: why setW/setH/reflow not enough for the
+ // scrollbars?
+ textField.onResize(new TResizeEvent(Type.WIDGET, resize.getWidth() - 2,
+ resize.getHeight() - 2));