I have two <textField>
one by one. Is possible to automatically stretch or shrink them depending on text length? The only attribute which hit my eyes, was the isStretchWithOverflow
but cause that one text is covering another - that is not what I meant. Anybody helps? Is it even possible?
标签:
jasper-reports
相关问题
- Jasper: error opening input stream from url
- JasperReports Server parameter dependency
- is it possible print element only when its detail
- JasperReports CompileReport
- Print an arraylist content with JasperReports
相关文章
- How to set up jasper reports in spring with subrep
- Modularization of Jasper reports: Pass data source
- How to use jasperreports subreports with grails ja
- Current URL /web/guest/HTML generates exception: n
- SAX2 driver class not found
- Passing array data from PHP to JasperReports (with
- How to force image url in jasper report export to
- SubReport not shown
I don't believe this is possible using pure HTML/CSS. However, you could do it by using Javascript. One way would be to bind a keypress event handler to your input which updates its width.
If you use JQuery, something like:
should do the trick (although you'll probably want to adjust the calculation; I have no idea if 5px per character is too much or too little).
I assume you are talking about stretch vertically.
In that case
isStretchWithOverflow
is exactly what you need.The second
<textfield>
covered by first one is because the position setting. You probably has it setting toFix
, so it dose not move while first one stretched. Change the position setting of second<textfield>
toFloat
should works.