[#4542] - Strech With Overflows property issues

Category:
Bug report
Priority:
High
Status:
Assigned
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

I am using the iReport v.3.7.0 and I have constructed my report in 5 detail bands.
I have noticed that when an element that preserves the property : "Strech With Overflows" overflows, then at the end of the detail band (that the element belongs to) a white space is preserved. This does not take place in case that the element does not overflow, though the "Strech With Overflows" property is assigned to it.
Of course, this causes beutician non-uniformity. There is no need to have a "white window" at the end of a page, as some info from the next page could fit in it.
Thank you in advance.

My Best Regards,
Thomi Damala

AttachmentSize
Binary Data ----Test.jrxml32.9 KB
tdamala's picture
44
Joined: Jan 11 2010 - 5:53am
Last seen: 13 years 8 months ago

2 Comments:

#1

Let me to define first the property.
Stretch with overflow: when it is selected, this option allows the text field to adapt vertically to the content, if the element is not sufficient to contain all the text lines.

Using 3.7, i've tried to set the "Stretch With Overflow" checked then set the element height to insufficiently display the text. When it runs, element height was automatically adjusted depends on the text height.

What do you mean by "white window"? <- left spaces?

Please provide attachments to reproduce.

#2

It seems that the problem is more complicated than that described by me a few days ago.
First of all, by "white window", yes, I mean left spaces.
Secondly, the source of the problem is not only the existence of the property isStretchWithOverflow (with the value true) and the overflow of the text.
It seems that the problem is a concatenation of this property and those:
isBlankWhenNull
and isRemoveLineWhenBlank.

I am attaching a jrxml file (Test.jrxml) that contains the two elements : TextField and Frame.
When only one of these two elements is detected into the jrxml file (delete the other to test the results), no left spaces can be detected at the end of the first page.
On the contrary, the presence of both of them results to the existence of left spaces at the end of the page.

Thank you in advance.

- TextField
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-198" mode="Opaque" x="1" y="73" width="535" height="39" isRemoveLineWhenBlank="true" backcolor="#CCCCCC"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font reportFont="Title"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title" + "Title"]]></textFieldExpression>
</textField>

-Frame
<frame>
<reportElement positionType="Float" x="0" y="343" width="535" height="42" isRemoveLineWhenBlank="true"/>
<staticText>
<reportElement key="staticText-827" positionType="Float" x="0" y="5" width="122" height="15" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($F{FPersCov1}.length()>0)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font reportFont="Common"/>
</textElement>
<text><![CDATA[Person 1 :]]></text>
</staticText>
<line>
<reportElement key="line-22" positionType="Float" x="0" y="21" width="535" height="1"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<staticText>
<reportElement key="staticText-828" positionType="Float" x="0" y="24" width="122" height="15" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($F{FPersCov2}.length()>0)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font reportFont="Common"/>
</textElement>
<text><![CDATA[Person 2 :]]></text>
</staticText>
<line>
<reportElement key="line-21" positionType="Float" x="0" y="3" width="535" height="1"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-165" positionType="Float" x="122" y="5" width="413" height="15" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($F{FPersCov1}.length()>0)]]></printWhenExpression>
</reportElement>
<textElement verticalAlignment="Middle">
<font reportFont="Fields"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{FPersCov1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-164" positionType="Float" x="122" y="24" width="413" height="15" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($F{FPersCov2}.length()>0)]]></printWhenExpression>
</reportElement>
<textElement verticalAlignment="Middle">
<font reportFont="Fields"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{FPersCov2}]]></textFieldExpression>
</textField>
<line>
<reportElement key="line-23" positionType="Float" x="0" y="40" width="535" height="1"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
</frame>

Feedback
randomness