code: protected void setBandsFinalHeight() {
          log.debug("Setting bands final height...");
  
          List<JRBand> bands = new ArrayList<JRBand>();
  
          Utils.addNotNull(bands, design.getPageHeader());
          Utils.addNotNull(bands, design.getPageFooter());
          Utils.addNotNull(bands, design.getColumnHeader());
          Utils.addNotNull(bands, design.getColumnFooter());
          Utils.addNotNull(bands, design.getSummary());
          Utils.addNotNull(bands, design.getBackground());
          bands.addAll(((JRDesignSection) design.getDetailSection()).getBandsList());
          Utils.addNotNull(bands, design.getLastPageFooter());
          Utils.addNotNull(bands, design.getTitle());
          Utils.addNotNull(bands, design.getPageFooter());
          Utils.addNotNull(bands, design.getNoData());
  
          for (JRGroup jrgroup : design.getGroupsList()) {
              DJGroup djGroup = (DJGroup) getReferencesMap().get(jrgroup.getName());
              JRDesignSection headerSection = (JRDesignSection) jrgroup.getGroupHeaderSection();
              JRDesignSection footerSection = (JRDesignSection) jrgroup.getGroupFooterSection();
              if (djGroup != null) {
                  for (JRBand headerBand : headerSection.getBandsList()) {
                      setBandFinalHeight((JRDesignBand) headerBand, djGroup.getHeaderHeight(), djGroup.isFitHeaderHeightToContent());
  
                  }
                  for (JRBand footerBand : footerSection.getBandsList()) {
                      setBandFinalHeight((JRDesignBand) footerBand, djGroup.getFooterHeight(), djGroup.isFitFooterHeightToContent());
  
                  }
              } else {
                  bands.addAll(headerSection.getBandsList());
                  bands.addAll(footerSection.getBandsList());
              }
          }
  
          for (JRBand jrDesignBand : bands) {
              setBandFinalHeight((JRDesignBand) jrDesignBand);
          }
      }
docs: Sets the necessary height for all bands in the report, to hold their children