Stretch on overflow error text box interval?

I am currently developing a report using iReport 4.7.0. At the moment, I'm trying to figure out how to dynamically adjust the height of a text field if its content is too large for the initial height. This variant of Stretch on overflow seems to achieve this. But I have problems with that.

If the textField is not stretched, the spacing before and after the text is good, because it is achieved by setting the height of the text field above the font size. But if textField gets dynamically more, because the containing text should be displayed for a long time with the initial height, the lines seem horribly packed, there is no interval between them.

I tried to resolve this by setting Interval and Interval after for a specific text field, but it seems to end in JasperReports thinking that the text field does not need to re-size at all, even if the text does not fit.

Is it possible that the calculation takes into account the size created by the Interval before and Interval after when changing parameters if it is necessary to change the size of the text field during overflow? Or am I doing something wrong here?

+4
source share
1 answer

Using gaskets:

  • Right click item
  • Select Gasket and Borders

-or -

  • Right click item
  • Select Show Properties
  • Go to the Borders tab
  • Set fill values ​​if necessary

Filling example

This should provide a constant interval, even if the window is resized. For complex layouts, experiment with the float position of the elements as described here .

+2
source

Source: https://habr.com/ru/post/1435878/


All Articles