如何在JasperReports中动态扩展框架?

mem*_*und 2 java jasper-reports

frame
  text field: short | text field: very long text causing linebreak
frame
  other elements
Run Code Online (Sandbox Code Playgroud)

我如何配置 jasper 报告,以便长文本字段将所有后续帧和元素向下移动?(即:导致动态调整帧大小)?

mem*_*und 6

解决方案:制作文本字段float; stretch relative to tallest object; overflow并制作周围的框架float; no stretch

这是非常违反直觉的,必须设置扩展框架才能no stretch扩展,并相应地向下移动任何后续元素。