import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.tree.TreeGrid;
HLayout layout = new HLayout();
TreeGrid treeGrid = new TreeGrid();
layout.setMembersMargin(0);
layout.setBorder("0 none");
layout.setPaddingAsLayoutMargin(false);
layout.setLayoutMargin(0);
layout.setCanDragResize(false);
for (Canvas canvas : layout.getMembers()) {
canvas.setMargin(0);
canvas.setPadding(0);
canvas.setBorder("0 none");
canvas.setWidth("100%");
canvas.setHeight("100%");
}
treeGrid.setMargin(0);
treeGrid.setBorder("0 none");
我已经尝试了所有这些方法,并且边界仍然treeGrid
在layout
.
如何删除或告诉 SmartGWT不生成我们可以在蓝色和绿色边框之间看到的这些灰色边框?
或者有没有这些边界的组件?