It will only be correct on the first time if there is a maxHeight to calculate. due to the time it takes to render all the contentPanes/accordionPanes, as well as client != "true", it may not have any other divs to calculate the height of. The only way to ensure the pane is fully shown the first time is to just let it be the height it needs for content. THen if a maxHeight is available, use it instead.
It will only be correct on the first time if there is a maxHeight to calculate. due to the time it takes to render all the contentPanes/accordionPanes, as well as client != "true", it may not have any other divs to calculate the height of. The only way to ensure the pane is fully shown the first time is to just let it be the height it needs for content. THen if a maxHeight is available, use it instead.