Jump to content
We've recently updated our Privacy Statement, available here ×

stretch a textfield only vertical?


pt_1
Go to solution Solved by lucianc,

Recommended Posts

Hi everyone,

I'd like to limit the width of a textfield but not the height.

So i did some changes in the properties of the textfield.

 

Position Type: Float

Strech Type: Relative To Tallest Object

Strech With Overflow: true

 

But this is to strech the textfield horizontal and vertical.

Thanks!

---------------------------------------------------------------------------------------------------------------------------------------

My Code:

    <detail>
        <band height="53" splitType="Stretch">
            <elementGroup>
                <textField isStretchWithOverflow="true">
                    <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="150" y="0" width="390" height="14" uuid="3511c796-9b6c-46e3-a85e-a0a496dd9276"/>
                    <box>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
                </textField>

          </elementGroup>
        </band>
    </detail>

 

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...