[#8146] - Text fields are not aligned properly when their content overflows to the next page

Category:
Bug report
Priority:
Urgent
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Text fields are not aligned properly when their content overflows to the next page.

The properties are set as follows:

Details band:
Split Type = Stretch

Text Field:
Stretch type = Relative to band height

AttachmentSize
Image icon bug_jasper.jpg103.62 KB
Binary Data alignmentproblem.jrxml5.84 KB
PDF icon alignmentproblem.pdf18.81 KB
v5.6.0
plotnic's picture
Joined: Mar 18 2015 - 2:17pm
Last seen: 4 years 11 months ago

10 Comments:

#1
  • Assigned:nobody» teodord

Hi,

Can we have the JRXML?
Note that if this proves to be a bug in 5.6.0, you would have to upgrade to latest JR, if you want to benefit from any fix we'll be providing.
So I suggest you try more recent versions of JR. We are not going to fix 5.6.0.

Thanks,
Teodor

#2
  • Status:New» Feedback Requested
#3

Attached is the jrxml file.

AttachmentSize
Binary Data alignmentproblem.jrxml5.84 KB
#4
  • Priority:High» Normal

Hi.
Same bug in 6.1.1 and 6.3.0

#5
  • Status:Feedback Requested» Assigned

Hi,

Indeed, this problem appeared when we introduced a property to force text fields to consume all available space at the bottom of the page and thus prevent other small elements starting there.
We are going to fix this for the next release, but in the meantime, if you want to have the cells aligned at the bottom, you can try set this property, either globally, or per report:

net.sf.jasperreports.consume.space.on.overflow=false

If you do so, there will be a small gap at the bottom of the table, right above the column/page footer, but at least the cells would be aligned with each other. This is how the engine worked before version 4.8.0 when the property was introduced with its default value on true.

I hope this helps.
Teodor

#6
  • Resolution:Open» Fixed
  • Status:Assigned» Resolved

Hi,

This is now fixed for the upcoming release.

Thanks,
Teodor

#7

net.sf.jasperreports.consume.space.on.overflow=false does not help
true/false - no difference

AttachmentSize
Binary Data index.jrxml45.02 KB
#8

The property works only if set globally.

It has no effect when set per report.

#9

Hi,

Yes, you are right, the property was not read from report level. But I have now modified the code and in the upcoming release it will also work at report level.

Thanks,
Teodor

#10
  • Priority:Normal» Urgent
  • Resolution:Fixed» Open
  • Status:Resolved» New
  • Assigned:nobody»

I am using jaspersoft 6.12.2 and i faced exactly the same issue like the above shown in picture. i tired the <property name="net.sf.jasperreports.consume.space.on.overflow" value="false"/> but it did not work. @Plotnic how you solved this issue? how can we set the property globally? i have attached the .jrxml file bellow.
any help appreciated!

AttachmentSize
Binary Data merg_cell.jrxml8.91 KB
Feedback