Announcement

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

    ListGrid in layout resizes only once

    I have a ListGrid in a layout (within a window). Data is added to the ListGrid. When resizing the window, the ListGrid gets resized once. Further window resizing does not resize the ListGrid anymore.
    Test case is written against current SmartClient Feature Explorer.

    Steps to reproduce:
    1) Press "Add New" until scroll bar appears.
    2) Resize the window vertically to accommodate the whole data. The ListGrid is resized properly and the scroll bar is gone.
    3) repeat steps 1) and 2). Now the ListGrid won't be resized anymore.

    Code:
    countryData = [
    
    {
        countryCode:"US",
        countryName:"United States",
        population:298444215
    },
    {
        countryCode:"CH",
        countryName:"China",
        population:1313973713
    },
    {
        countryCode:"JA",
        countryName:"Japan",
        population:127463611
    }];
    
    isc.ListGrid.create({
        autoDraw: false,
        ID: "countryList",
        height:"*",
        width:500,
        data: countryData,
        fields: [
            {name: "countryCode", title: "Country Code"},
            {name: "countryName", title: "Country Name"},
            {name: "population", title: "Population"}
        ]
    });
    
    isc.IButton.create({
        ID: "button",
        autoDraw: false,
        height: 30,
        title:"Add New",
        click:function() {
            countryList.addData({countryCode: "FOO", countryName: "test", population: countryList.getTotalRows()});
        }
    });
    
    isc.VLayout.create({
        ID: "layout",
        autoDraw: false,
        members: [
            button, countryList
        ]
    });
    
    isc.Window.create({
        width: 520,
        height: 200,
        canDragResize: true,
        items: [
            layout
        ]
    });
    Additional Observation:
    Perform another test with
    dragAppearance: "target"
    on the window.

    1) Press "Add New" until scroll bar appears.
    2) Resize the window vertically until the scroll bar is gone.
    3) Resize the window further. The ListGrid resizes with the window, but the ListGrid body remains at the height of all currently added records.
    4) Add more records. The ListGrid body scrolls immediately and does not expand anymore.
    Last edited by ect; 25 Sep 2012, 00:16. Reason: additional observation

    #2
    We're not able to reproduce the issue you mention--we've checked both the SC 8.3d and SC 8.2p streams.

    You haven't provided any details about what build you're using, the browser in which you saw the issue, etc.

    Comment


      #3
      Sorry, that was our fault. The testcase was mistakenly done against the 8.2 stable version, not the latest 8.2 nightly. The issue was present in 8.2 stable, but you have already fixed it long ago. Sorry again for generating noise.

      Comment


        #4
        Thanks for the follow-up. Good to know it's fixed.

        Comment

        Working...
        X