Jump to content
Changes to the Jaspersoft community edition download ×

Aligning Static Text and Text Field Height


dmitiry.malayev

Recommended Posts

Hello I am trying to make the height of my static text field align with my text field

<frame>    <reportElement positionType="Float" x="0" y="353" width="988" height="30" uuid="9e30821e-0d6a-4905-b660-20a701e9ce5f"/>    <staticText>       <reportElement positionType="Float" x="0" y="0" width="300" height="30" uuid="a8d9f08e-0d3f-41d1-b0e1-f8585932d957">          <property name="com.jaspersoft.studio.unit.x" value="px"/>          <property name="com.jaspersoft.studio.unit.width" value="px"/>       </reportElement>       <box topPadding="5" leftPadding="10" bottomPadding="5" rightPadding="10">          <pen lineWidth="0.0" lineColor="#0544FF"/>          <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>          <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>          <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>          <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>       </box>       <textElement textAlignment="Left">          <font fontName="SansSerif" size="12" isBold="true"/>       </textElement>       <text><![CDATA[street Address:]]></text>    </staticText>    <textField textAdjust="StretchHeight">       <reportElement positionType="Float" x="300" y="0" width="688" height="30" uuid="72eb652e-eec4-4a71-a8e7-1c587a8b13e1">          <property name="com.jaspersoft.studio.unit.x" value="px"/>       </reportElement>       <box topPadding="5" leftPadding="10" bottomPadding="5" rightPadding="10">          <pen lineWidth="0.0" lineColor="#0544FF"/>          <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>          <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>          <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>          <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#0533ED"/>       </box>       <textElement textAlignment="Left">          <font fontName="SansSerif" size="12" isBold="false"/>       </textElement>       <textFieldExpression><![CDATA[$P{streetAddress}]]></textFieldExpression>    </textField></frame>

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

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...