I'm trying to build a section stack with a DynamicForm and some other components. I want all Sections to be visible at the same time ("VisibilityMode = Multiple").
I'm trying to archieve, that the form uses as much space as needed and the other components are sharing the remaining space.
But: I can only resize the sections once. Any further dragging of the section header will be ignored. This seems to be an issue of the SectionStack in combination with the DynamicForm.
1. Version numbers: tested with SmartClient Version: v10.0p_2015-01-28/LGPL Development Only (built 2015-01-28)
2. Browser: Firefox 31.0 Windows
3. sample code:
Thanks in advance!
I'm trying to archieve, that the form uses as much space as needed and the other components are sharing the remaining space.
But: I can only resize the sections once. Any further dragging of the section header will be ignored. This seems to be an issue of the SectionStack in combination with the DynamicForm.
1. Version numbers: tested with SmartClient Version: v10.0p_2015-01-28/LGPL Development Only (built 2015-01-28)
2. Browser: Firefox 31.0 Windows
3. sample code:
Code:
package v.client; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.types.VisibilityMode; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.TextItem; import com.smartgwt.client.widgets.layout.SectionStack; import com.smartgwt.client.widgets.layout.SectionStackSection; public class V implements EntryPoint { SectionStack layout = new SectionStack(); public void onModuleLoad() { DynamicForm form = new DynamicForm(); form.setFields(new TextItem("textinput", "textinput")); form.setBorder("solid 2px red"); addSection(form); Label label = new Label("text"); label.setBorder("solid 2px green"); label.setHeight("*"); addSection(label); Label label2 = new Label("text"); label2.setBorder("solid 2px green"); label2.setHeight("*"); addSection(label2); layout.setVisibilityMode(VisibilityMode.MULTIPLE); layout.setWidth100(); layout.setHeight100(); layout.show(); } private void addSection(Canvas content) { SectionStackSection section = new SectionStackSection(); section.addItem(content); section.setExpanded(true); layout.addSection(section); } }
Comment