in 04 - Layout/02 - Layout Components.js [43:56]
getResult() {
// We already had this height calculated in render, but to allow for render
// to be deferred, and to preserve the standard render() API, we have to
// recalculate it here. This is helpful in the cases where a parent decides
// not to render this child. That way we can avoid calling render.
var totalHeight = 0;
var children = this.prerendered;
for (var i = 0; i < children.length; i++) {
totalHeight += children[i].result.layoutHeight;
}
return {
layoutHeight: totalHeight
};
}