Hi,
I have a textitem on a dynamic form, using this code (SmartGwt 2.2):
The css looks like this:
.test {
margin : 10px;
}
Now, when the user clicks on the textbox, the box jumps to the left as if no margin was set.
I think this is due to the fact that I have to set the margin on some other field, but which one?
I tried these fields at no result:
tItem.setCellStyle("test");
tItem.setPrintTextBoxStyle("test");
tItem.setHoverStyle("test");
I have a textitem on a dynamic form, using this code (SmartGwt 2.2):
Code:
public void onModuleLoad() { DynamicForm form = new DynamicForm(); TextItem tItem = new TextItem("ID", "Name"); tItem.setTextBoxStyle("test"); form.setItems(tItem); RootPanel.get().add(form); }
.test {
margin : 10px;
}
Now, when the user clicks on the textbox, the box jumps to the left as if no margin was set.
I think this is due to the fact that I have to set the margin on some other field, but which one?
I tried these fields at no result:
tItem.setCellStyle("test");
tItem.setPrintTextBoxStyle("test");
tItem.setHoverStyle("test");
Comment