Announcement

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

    [Bug on demo site] TreeGrid auto-fit on frozen tree column is brocken

    In the link below if you add autoFitWidthApproach: "both" to the source code and try to auto-fit all columns - Name column gets cut off

    http://www-demos.smartclient.com/iso...tml#freezeTree

    Also with autoFitWidthApproach: "both" - calling autoFitFields() programmatically ignores this setting and auto-fits values, not headers
    Example here
    http://www-demos.smartclient.com/iso...childrenArrays

    I added autoFitWidthApproach: "both", setFields(), and autoFitFields() and the result fits EmployeeId field to values only.
    If you call Auto Fit All columns from header menu - EmployeeId field autofits fine but not the Name field
    Code:
    isc.TreeGrid.create({
        ID: "employeeTree",
    
        data: isc.Tree.create({
            modelType: "children",
            nameProperty: "Name",
            childrenProperty: "directReports",
            root: {EmployeeId: "1", directReports: [
                {EmployeeId:"4", Name:"Charles Madigen", directReports: [
                    {EmployeeId:"188", Name:"Rogine Leger"},
                    {EmployeeId:"189", Name:"Gene Porter", directReports: [
                        {EmployeeId:"265", Name:"Olivier Doucet"},
                        {EmployeeId:"264", Name:"Cheryl Pearson"}
                    ]}
                ]}
            ]}
        }),
    
        autoFitWidthApproach: "both",
    
        // customize appearance
        width: 500,
        height: 400,
        nodeIcon:"icons/16/person.png",
        folderIcon:"icons/16/person.png",
        showOpenIcons:false,
        showDropIcons:false,
        closedIconSuffix:""
    });
    
    
    employeeTree.setFields([
        {name:"Name", frozen:true},
        {name:"EmployeeId"}
    ]);
    
    
    employeeTree.getData().openAll();
    
    employeeTree.autoFitFields();
    Last edited by jumple; 21 Nov 2014, 14:06.

    #2
    Hmm - we fixed this a long time ago (spotted here) but it appears to have regressed.
    We've fixed again. Please try the next nightly build dated Dec 2 or above.

    Regards
    Isomorphic Software

    Comment


      #3
      Thanks, fixed

      Comment

      Working...
      X