Hi,
While testing upgrade to SmartGWT 15.0d I noticed that TreeGrid name field is center aligned instead of left aligned as it used to be 14.1p and earlier versions.
Here is the test case:
and 15.0d output is:

while 14.1p output is:

Any fix or workaround for this?
Thanks,
MichalG
While testing upgrade to SmartGWT 15.0d I noticed that TreeGrid name field is center aligned instead of left aligned as it used to be 14.1p and earlier versions.
Here is the test case:
Code:
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.types.TreeModelType;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.tree.Tree;
import com.smartgwt.client.widgets.tree.TreeGrid;
import com.smartgwt.client.widgets.tree.TreeGridField;
import com.smartgwt.client.widgets.tree.TreeNode;
public class MainEntryPoint implements EntryPoint {
public void onModuleLoad() {
layout();
SC.showConsole();
}
private void layout() {
TreeGrid testTreeGrid = new TreeGrid();
testTreeGrid.setWidth(300);
testTreeGrid.setHeight(300);
TreeGridField nameField = new TreeGridField();
nameField.setCanFilter(true);
nameField.setName("name");
TreeGridField seqField = new TreeGridField();
seqField.setName("seqIndex");
seqField.setHidden(true);
testTreeGrid.setFields(nameField, seqField);
Tree tree = new Tree();
tree.setModelType(TreeModelType.PARENT);
tree.setNameProperty("name");
tree.setOpenProperty("isOpen");
tree.setIdField("nodeID");
tree.setParentIdField("parentNodeID");
tree.setRootValue("root");
tree.setShowRoot(false);
TreeNode[] appMenu = new TreeNode[2];
appMenu[0] = new TreeNode("Folder test");
appMenu[0].setIsFolder(true);
appMenu[1] = new TreeNode("Test");
appMenu[1].setIsFolder(false);
tree.setData(appMenu);
testTreeGrid.setData(tree);
testTreeGrid.draw();
}
}
while 14.1p output is:
Any fix or workaround for this?
Thanks,
MichalG
Comment