setBandFinalHeight((JRDesignBand) design.getPageFooter());
setBandFinalHeight((JRDesignBand) design.getNoData());
for (Iterator iter = design.getGroupsList().iterator(); iter.hasNext();) {
JRGroup jrgroup = (JRGroup) iter.next();
DJGroup djGroup = (DJGroup) getReferencesMap().get(jrgroup.getName());
if (djGroup != null){
setBandFinalHeight((JRDesignBand) jrgroup.getGroupHeader(),djGroup.getHeaderHeight().intValue(), djGroup.isFitHeaderHeightToContent());
setBandFinalHeight((JRDesignBand) jrgroup.getGroupFooter(),djGroup.getFooterHeight().intValue(), djGroup.isFitFooterHeightToContent());
} else {
setBandFinalHeight((JRDesignBand) jrgroup.getGroupHeader());
setBandFinalHeight((JRDesignBand) jrgroup.getGroupFooter());
}
}