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.
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.
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 ] });
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.
Comment