title: Jasperreports multiple subreports overlapping
body: <p>i have a master detail with 2 subreports back to back <code>vertically</code> they not have to much space because the master report is quite long.... i have specify in both subreports the <code>FLOAT</code> attribute everything works smoothly when the data of both fills in the space assign it in <code>IREPORT</code> but when they have a lot of rows i mean <code>3 or more rows</code> the second subreport <code>Materiales</code> overlaps the next component... i would like if some subreport need more space it would push the next component down. the <code>TRABAJOS REALIZADOS</code> is into a <code>Frame with Float property</code> but is not pushed down the frame is maintaining the position and gets overlapped by <code>Materiales sub-report..</code>  </p>
  
  <p>my ireport design. </p>
  
  <p><img src="https://i.stack.imgur.com/qByH1.png" alt="enter image description here"></p>
  
  <p><code>my source code some tags are ommited by brevity</code></p>
  
  <pre><code>&lt;detail&gt;
      &lt;band height="770" splitType="Stretch"&gt;
          .... others tags ommited by brevity
          &lt;frame&gt;
              &lt;reportElement positionType="Float" x="0" y="401" width="554" height="70"/&gt;
              &lt;subreport runToBottom="false"&gt;
                  &lt;reportElement positionType="Float" x="1" y="1" width="553" height="69"/&gt;
                  &lt;dataSourceExpression&gt;&lt;![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{munichs})]]&gt;&lt;/dataSourceExpression&gt;
                  &lt;subreportExpression class="java.io.InputStream"&gt;&lt;![CDATA[$P{SUBREPORT_EXPRESSION}]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;                
          &lt;/frame&gt;
          &lt;frame&gt;
              &lt;reportElement positionType="Float" x="2" y="472" width="551" height="128"/&gt;
              &lt;subreport runToBottom="false"&gt;
                  &lt;reportElement positionType="Float" x="1" y="44" width="545" height="83"/&gt;
                  &lt;dataSourceExpression&gt;&lt;![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{venices})]]&gt;&lt;/dataSourceExpression&gt;
                  &lt;subreportExpression class="java.io.InputStream"&gt;&lt;![CDATA[$P{SUBREPORT_EXPRESSION_SECOND_REPORT}]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
                       &lt;/frame&gt;               
          &lt;frame&gt;&lt;!--this frame is not pushed down and gets overlapped...--&gt;
              &lt;reportElement positionType="Float" x="0" y="599" width="554" height="171"/&gt;
              &lt;rectangle&gt;
                  &lt;reportElement x="2" y="1" width="180" height="20"/&gt;
              &lt;/rectangle&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="2" y="1" width="178" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;text&gt;&lt;![CDATA[TRABAJOS PENDIENTES]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;rectangle&gt;
                  &lt;reportElement x="2" y="21" width="550" height="38"/&gt;
              &lt;/rectangle&gt;
              &lt;textField&gt;
                  &lt;reportElement x="3" y="21" width="551" height="38"/&gt;
                  &lt;textElement/&gt;
                  &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{observations}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="2" y="64" width="100" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;text&gt;&lt;![CDATA[FIRMA OPERADOR: ]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="333" y="64" width="107" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;text&gt;&lt;![CDATA[CONFORME CLIENTE:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;image&gt;
                  &lt;reportElement x="442" y="63" width="22" height="22"/&gt;
                  &lt;imageExpression class="java.io.InputStream"&gt;&lt;![CDATA[$F{sign}]]&gt;&lt;/imageExpression&gt;
              &lt;/image&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="188" y="90" width="66" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;text&gt;&lt;![CDATA[FIRMA Y DNI:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;image&gt;
                  &lt;reportElement x="257" y="89" width="22" height="22"/&gt;
                  &lt;imageExpression class="java.io.InputStream"&gt;&lt;![CDATA[$F{conformity}]]&gt;&lt;/imageExpression&gt;
              &lt;/image&gt;
              &lt;image&gt;
                  &lt;reportElement x="281" y="89" width="264" height="32"/&gt;
                  &lt;imageExpression class="java.io.InputStream"&gt;&lt;![CDATA[$F{imageForSign}]]&gt;&lt;/imageExpression&gt;
              &lt;/image&gt;
              &lt;textField&gt;
                  &lt;reportElement x="2" y="122" width="543" height="49"/&gt;
                  &lt;textElement/&gt;
                  &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$P{lopd}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/frame&gt;
  
  
      &lt;/band&gt;
  &lt;/detail&gt;
  </code></pre>
  
  <p>my <code>IReport image</code></p>
  
  <p><img src="https://i.stack.imgur.com/eq9LN.png" alt="enter image description here">
  <strong><em>My PDF with overlapping..</em></strong></p>
  
  <p><img src="https://i.stack.imgur.com/kxglA.png" alt="enter image description here"></p>
  
  <p><a href="https://i.stack.imgur.com/qByH1.png" rel="nofollow noreferrer">1</a>: </p>