title: Remove Line When Blank not working for Relative to Band height stretch type
body: <p>I have a report with position type float for all elements and stretch type Relative to Band Height and no stretch for different element. For one particular case I want my textField to completely vanish depending upon Print when expression, so I have Remove Line When Blank checked. But the problem is, there is small gap between element above and below it when it is gone. </p>
  
  <p>This is what I expect.</p>
  
  <p><a href="https://i.stack.imgur.com/v7Gbb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v7Gbb.jpg" alt="enter image description here"></a></p>
  
  <p>This is what I get</p>
  
  <p><a href="https://i.stack.imgur.com/eTPab.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eTPab.jpg" alt="enter image description here"></a></p>
  
  <p>Following is my textField</p>
  
  <pre><code>&lt;textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true"&gt;
                  &lt;reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="617" width="278" height="10" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#00FFFF" uuid="b8a09e5a-b3ff-4ddf-b833-3cf854f1108e"&gt;
                      &lt;printWhenExpression&gt;&lt;![CDATA[($F{SOME_VALUE}!=null)]]&gt;&lt;/printWhenExpression&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment="Justified" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Arial" size="4" isBold="true" isItalic="false" pdfFontName="Helvetica-Bold"/&gt;
                      &lt;paragraph leftIndent="1" rightIndent="1"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{SOME_VALUE}]]&gt;&lt;/textFieldExpression&gt;
  &lt;/textField&gt;
  </code></pre>
  
  <p>If the stretch type is No stretch it works as expected and no gap between elements, but it is not working for Relative to Band Height. How do I solve this issue?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I tried keeping elements inside the frame but result is the same (Like I have said, it works when stretch type is No Stretch, but there is gap for Relative to Band Height). </p>
  
  <p><strong>LAST EDIT</strong></p>
  
  <p>I had to keep the Middle dynamic element on it's own band to make that work.My detail band was really complicated and there were other dynamic elements which might have resulted on growth of space on the band. </p>