title: Resize(stretch) detail band by subreport's size
body: <p>I have main report with horizontal print order(4 columns). There is subreport with variable height in detail's band of main report. Problem is the variable height when I set subreport's height not enough to display all data it says:</p>
  
  <pre><code>net.sf.jasperreports.engine.JRRuntimeException: 
  Subreport overflowed on a band that does not support overflow.
  </code></pre>
  
  <p>Can I somehow tell the main report's detail band to stretch accourding to subreport's size?</p>
  
  <p>Main report:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="MainReport" language="groovy" columnCount="4" printOrder="Horizontal" pageWidth="595" pageHeight="1100" columnWidth="138" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="796cf45d-4953-4dea-9173-64556d85b7fc"&gt;
  &lt;property name="ireport.zoom" value="1.0"/&gt;
  &lt;property name="ireport.x" value="0"/&gt;
  &lt;property name="ireport.y" value="0"/&gt;
  &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/&gt;
  &lt;parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"&gt;
      &lt;defaultValueExpression&gt;&lt;![CDATA["C:\\Reports\\"]]&gt;&lt;/defaultValueExpression&gt;
  &lt;/parameter&gt;
  &lt;queryString language="SQL"&gt;
      &lt;![CDATA[select SYSDATE from dual]]&gt;
  &lt;/queryString&gt;
  &lt;field name="SYSDATE" class="java.sql.Timestamp"/&gt;
  &lt;detail&gt;
      &lt;band height="20" splitType="Stretch"&gt;
          &lt;subreport&gt;
              &lt;reportElement x="0" y="0" width="138" height="20" isPrintWhenDetailOverflows="true" uuid="5901e9d7-0ae3-42b9-a804-106d502a904b"/&gt;
              &lt;connectionExpression&gt;&lt;![CDATA[$P{REPORT_CONNECTION}]]&gt;&lt;/connectionExpression&gt;
              &lt;subreportExpression&gt;&lt;![CDATA[$P{SUBREPORT_DIR} + "SubReport.jasper"]]&gt;&lt;/subreportExpression&gt;
          &lt;/subreport&gt;
      &lt;/band&gt;
  &lt;/detail&gt;
  </code></pre>
  
  <p></p>
  
  <p>Subreport:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="SubReport" language="groovy" pageWidth="555" pageHeight="802" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="a7078e79-2772-4921-afc9-de4bcd5fe09d"&gt;
  &lt;property name="ireport.zoom" value="1.0"/&gt;
  &lt;property name="ireport.x" value="0"/&gt;
  &lt;property name="ireport.y" value="0"/&gt;
  &lt;queryString&gt;
      &lt;![CDATA[SELECT ROWNUM
  FROM DUAL
  CONNECT BY LEVEL &lt; 50]]&gt;
  &lt;/queryString&gt;
  &lt;field name="ROWNUM" class="java.math.BigDecimal"/&gt;
  &lt;detail&gt;
      &lt;band height="20" splitType="Stretch"&gt;
          &lt;textField&gt;
              &lt;reportElement x="0" y="0" width="100" height="20" uuid="10b08205-9452-44e2-8fa2-a3f782ca6aa8"/&gt;
              &lt;textFieldExpression&gt;&lt;![CDATA[$F{ROWNUM}]]&gt;&lt;/textFieldExpression&gt;
          &lt;/textField&gt;
      &lt;/band&gt;
  &lt;/detail&gt;
  </code></pre>
  
  <p></p>
  
  <p>Example(EL is empty line I don't want):</p>
  
  <pre><code>.sub1. .sub2. .sub3. .sub4.
  ...... ...... ...... ......
  ...... ...... --EL-- --EL--
  ...... --EL-- --EL-- --EL--
  --EL-- --EL-- --EL-- --EL-- 
  --EL-- --EL-- --EL-- --EL-- 
  
  .sub5. .sub6. .sub7. .sub8.
  ...... ...... ...... ......
  ...... ...... ...... ......
  ...... ...... ...... ......
  ...... ...... ...... --EL-- 
  ...... ...... --EL-- --EL-- 
  ...... ...... --EL-- --EL-- 
  </code></pre>