GXT布局问题
小弟求帮助:架包什么的全部导入 编译正常
protected AnchorLayoutData fieldLayoutData2 = new AnchorLayoutData("-10");
root = new Panel();
root.setPaddings(0);
root.setLayout(new RowLayout());
root.setAutoScroll(true);
basicPanel = new Panel();
basicPanel.setColWidths(new float[] { 0.5f, 0.5f });
basicPanel.setTitle("基本信息");
basicPanel.setLabelWidth(form.getLabelWidth());
basicPanel.setPaddings(3, 3, 3, 0);
basicPanel.setAutoHeight(true);
basicPanel.setAutoWidth(true);
form = new Panel();
form.setTitle("测试表单");
form.setAutoScroll(false);
form.setAutoHeight(true);
form.setLabelWidth(100);
form.setAutoWidth(true);
form.setColWidths(new float[] { 0.5f, 0.5f });
form.setPaddings(3, 3, 3, 0);
memberCName=new TextBox("测试框框","显示测试框框");
memberCName.setReadOnly(false);
memberCName.setDisabled(true);
memberCName.addListener(listener);
basicPanel.add(memberCName, 1, fieldLayoutData2);
form.add(basicPanel, 2,fieldLayoutData2);
root.add(form, new RowLayoutData("100%"));
RootPanel.get().add(root);
为什么只会显示一个form的标题:测试表单 然后下面就一片空白!但却有表单原有的高度
[解决办法]
不会帮顶
jF
[解决办法]
友情帮顶