I am seeing that when a DynamicForm containing a RadioGroupItem is disabled it increases in width. Its size is restored when the form is enabled again.
I am running the 3.1d nightly build from earlier this week.
This code will show the problem.
I am running the 3.1d nightly build from earlier this week.
This code will show the problem.
Code:
import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.types.Alignment; import com.smartgwt.client.widgets.IButton; import com.smartgwt.client.widgets.events.ClickEvent; import com.smartgwt.client.widgets.events.ClickHandler; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.RadioGroupItem; public class TestRgi implements EntryPoint { public void onModuleLoad() { final DynamicForm form = new DynamicForm(); form.setBackgroundColor("lightblue"); form.setWidth(300); form.setTop(200); form.setLeft(200); RadioGroupItem rgi = new RadioGroupItem(); rgi.setTitle("Rgi test"); rgi.setValueMap("Yes", "No"); rgi.setVertical(false); rgi.setAlign(Alignment.LEFT); rgi.setWrap(false); form.setItems(rgi); form.draw(); IButton ib = new IButton("button"); ib.setTop(250); ib.setLeft(300); ib.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if (form.isDisabled()) { form.setDisabled(false); } else { form.setDisabled(true); } } }); ib.draw(); } }
Comment