first click makes subrow height too large, close click, then

Hi, I’m struggling with this issue:



I’m using a subgrid.



Upon the initial load of the page, I click the “+” to open the sub grid. The row on the main grid expands, but it’s height is WAY to large. I click the “-” to close the expanded row, then click the “+” again and this time, the row expansion is correct… it takes the height of the internal subgrid.



Here’s two pics to show what I’m talking about:

picasaweb.google.com/LarryAtCLT/ … directlink



Here’s my code:





It somehow caused by sync. way of data loading. Probably browser has not time to update sizes before onGridReconstructed event called.
You can try to update the code as

subgrid.parse(document.getElementById(“xmlDataIsland2”));
window.setTimeout(function(){
subgrid.callEvent(“onGridReconstructed”,[]);
},1);

It may resolve issue.

Also problem can be caused if you are loading some images in subgrid with height greater than normal height of row ( images are dynamic elements, and their final size will be available only when they fully loaded )