-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stretch overflowed fields not stretching it's band #22
Comments
Try check if split type property is "stretch" ou "prevent" in both bands, when you be create bands in JasperSoft Studio, it´s create if split type property with null value |
Hi,
I've checked this because bands where overlapping even without the field stretching.
Problem now is that the stretching field doesn't stretch it's parent band height.
Em 2 de março de 2020 14:35:32 BRT, Rogerio Muniz <[email protected]> escreveu:
…Try check if split type property is "stretch" ou "prevent" in both
bands, when you be create bands in JasperSoft Studio, it´s create if
split type property with null value>
>
-- >
You are receiving this because you authored the thread.>
Reply to this email directly or view it on GitHub:>
#22 (comment)
--
E-mail enviado do meu celular Android usando K-9 Mail. Por favor, desculpe minha brevidade.
|
Hi, a few seconds ago post a possible solution, try update and test again. |
remember to check stretch with overflow property in textfield |
Looks like it is the textAdjust option on my version, it have CutText, StretchHeight (I'm choosing this), and ScaleFont options! |
This is how the code ends on the xml: <textField textAdjust="StretchHeight">
<reportElement x="0" y="0" width="180" height="18" uuid="5e2f0d45-410f-4627-964a-8f2d311dde90"/>
<textElement textAlignment="Left" verticalAlignment="Top" markup="html"/>
<textFieldExpression><![CDATA[$F{text}]]></textFieldExpression>
</textField> |
you can add isStretchWithOverflow ou isPrintWhenDetailOverflows, both be make stretch |
Tool automatically changes edition of Both with Tomorrow I will try to make a proof of concept of the bug and post here. |
Here is a proof of concept of the problem https://drive.google.com/open?id=18M8PLgYcdLyzaz2lrhPxpf5XyTdJnJvh |
@Rctnet ... found the problem here... I have marked HTML since it was the only way I was able to get all the content, correct is to use none instead. Anyway, the problem still occurs for HTML. And on a sidenote, looks like you are testing Another thing is the |
Had some satisfactory results changing the order of the fields on XML, every element placed after the stretching one gets its position affected. It doesn't respect the "relative to top" or "relative to bottom" property. It is not optimal, but it will do what I need. |
Just to keep this here: any field declared AFTER a stretched field on the jrxml file gets its coordinates entirely unpredictable, so fields that are before or on the same line of it, or even fields that must have a fixed position must be declared before. all other fields will apply the offset of the stretched field... even if the field doesn't stretch. I suppose it can be considered a bug because this is not the jasper reports behavior , but it is possible to work around it if only one field is stretchable and everything bellow it should move down. Things can get messy if two or more stretchable fields lies on the same page. |
On a report with two detail bands, the first one have a field that stretchs with its contents, the expected behavior is to move the following band down but it gets overwritten.
Looks like the stretched field isn't stretching its parent band
Image of sample is attached.
The text was updated successfully, but these errors were encountered: