Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid name column center aligned in 15.0d

    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:
    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();
        }
    }
    and 15.0d output is:
    Click image for larger version

Name:	TreeGrid_align_v15.png
Views:	6
Size:	3.9 KB
ID:	277111
    while 14.1p output is:
    Click image for larger version

Name:	TreeGrid_align_v14.png
Views:	5
Size:	4.0 KB
ID:	277112
    Any fix or workaround for this?
    Thanks,
    MichalG

    #2
    This looks like a bug that was introduced and then fixed last week. Can you get the latest and confirm?

    Comment

    Working...
    X