I've noticed that my web application jumps around in cell width when I click into my EditTextCell.
As I've seen on http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable it's possible to prevent that. Also I've seen solutions where EditTextCell is subclassed, which is not my favourite. But I don't quite understand why the Google Example doesn't jump around and mine does.
Are they using CSS to prevent that?
Here's some code of mine:
cellTable = new CellTable<MyTO>();
Column<MyTO, String> editableColumn = new Column<MyTO, String>(new EditTextCell()) {
@Override
public String getValue(MyTO my) {
return my.getString();
}
};
editableColumn.setFieldUpdater(new FieldUpdater<MyTO, String>() {
@Override
public void update(int index, MyTO object,String value) {
object.setString(value);
dirty = true;
}
});
cellTable.addColumn(editableColumn, "Editable Column");
As far as I've seen through the Google Sample, no setWidth()-Method is called - but I could'nt find any notice that a custom CSS style is applied...
Any hints? Or maybe one of the google folks scans this too and can help?
Greetings, Chris