Hi, I'm trying to make dynamic form behaviour similar to sample:
http://www.smartclient.com/smartgwt/showcase/#layout_form_spanning
and found very annoying bug there.
1) Open this sample and try to resize the form by dragging right border. When mouse up first time, the size of dynamic form increases by 7 px.
2) Open sources for this sample, you'll see "form.setHeight(180)", but if you measure it with rule, it is about 200px
3) Finally, I've prepared example where dynamic form is created with title and without one. The example with title changes dynamic form height even if I particularly set it. Please help.
http://www.smartclient.com/smartgwt/showcase/#layout_form_spanning
and found very annoying bug there.
1) Open this sample and try to resize the form by dragging right border. When mouse up first time, the size of dynamic form increases by 7 px.
2) Open sources for this sample, you'll see "form.setHeight(180)", but if you measure it with rule, it is about 200px
3) Finally, I've prepared example where dynamic form is created with title and without one. The example with title changes dynamic form height even if I particularly set it. Please help.
Code:
public void onModuleLoad() { HLayout main = new HLayout(); main.addMember(create("")); main.addMember(create("Title")); main.draw(); } private DynamicForm create(String title) { DynamicForm form = new DynamicForm(); form.setIsGroup(true); form.setGroupTitle(title); TextItem text = new TextItem("Text"); text.setHeight("*"); form.setFields(text); form.setWidth(200); form.setHeight(200); return form; }
Comment