You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by "Adarsh Y.V" <ad...@gmail.com> on 2011/09/29 17:04:26 UTC
text wrap not working
hi,
this is wht i tried but text wrap is not working.....any other solutions??
<BoxPane orientation="horizontal" styles="{ padding:{top:0, left:70,
bottom:8, right:4}}">
<Label styleName="screenNormalText" text="Required SQL instance is already
installed on the machine. Please provide password for 'sa' user to perform
database opertations" styles="{wrapText:true}" preferredHeight="20"/>
</BoxPane>
Re: text wrap not working
Posted by sdf <ad...@gmail.com>.
Thanks folks
found my mistake:-)
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/text-wrap-not-working-tp3379509p3381306.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: text wrap not working
Posted by Roger and Beth Whitcomb <Ro...@rbwhitcomb.com>.
The problem is that the Label needs a constrained width in order to know
when/where to wrap. BoxPane adjusts to the size of its content, so
there is no "constraint" on the size. If in your BoxPane, you would do:
preferredWidth="120" (for example) then you should see the Label
wrapping. There are other containers that you can also use to constrain
the width.
On 9/29/11 8:04 AM, Adarsh Y.V wrote:
> hi,
> this is wht i tried but text wrap is not working.....any other solutions??
>
> <BoxPane orientation="horizontal" styles="{ padding:{top:0, left:70,
> bottom:8, right:4}}">
> <Label styleName="screenNormalText" text="Required SQL instance is
> already installed on the machine. Please provide password for 'sa'
> user to perform database opertations" styles="{wrapText:true}"
> preferredHeight="20"/>
> </BoxPane>
RE: text wrap not working
Posted by Jérôme Serré <je...@gmail.com>.
Hello,
It works for me.
<Border>
<content>
<ScrollPane horizontalScrollBarPolicy="fill"
verticalScrollBarPolicy="fill_to_capacity"
preferredHeight="50" preferredWidth="170">
<view>
<TextArea bxml:id="commentaire"
styles="{wrapText:true}"/>
</view>
</ScrollPane>
</content>
</Border>
Jérôme Serré
____________________________
Manage your cellar
<http://www.macave.eu/> http://www.macave.eu
De : Adarsh Y.V [mailto:adarsh699@gmail.com]
Envoyé : jeudi 29 septembre 2011 17:04
À : user@pivot.apache.org; Edvin Syse
Objet : text wrap not working
hi,
this is wht i tried but text wrap is not working.....any other solutions??
<BoxPane orientation="horizontal" styles="{ padding:{top:0, left:70,
bottom:8, right:4}}">
<Label
styleName="screenNormalText" text="Required SQL instance is already
installed on the machine. Please provide password for 'sa' user to perform
database opertations" styles="{wrapText:true}" preferredHeight="20"/>
</BoxPane>
Re: text wrap not working
Posted by Greg Brown <gk...@verizon.net>.
You are missing fill:true in your BoxPane styles.
On Sep 29, 2011, at 11:04 AM, Adarsh Y.V wrote:
> hi,
> this is wht i tried but text wrap is not working.....any other solutions??
>
> <BoxPane orientation="horizontal" styles="{ padding:{top:0, left:70, bottom:8, right:4}}">
> <Label styleName="screenNormalText" text="Required SQL instance is already installed on the machine. Please provide password for 'sa' user to perform database opertations" styles="{wrapText:true}" preferredHeight="20"/>
> </BoxPane>
RE: text wrap not working
Posted by Jérôme Serré <je...@gmail.com>.
Sorry,
<BoxPane Form.label="%commentaire">
<Border>
<content>
<ScrollPane horizontalScrollBarPolicy="fill"
verticalScrollBarPolicy="fill_to_capacity"
preferredHeight="50" preferredWidth="170">
<view>
<TextArea bxml:id="commentaire"
styles="{wrapText:true}"/>
</view>
</ScrollPane>
</content>
</Border>
</BoxPane>
Jérôme Serré
____________________________
Manage your cellar
<http://www.macave.eu/> http://www.macave.eu
De : Adarsh Y.V [mailto:adarsh699@gmail.com]
Envoyé : jeudi 29 septembre 2011 17:04
À : user@pivot.apache.org; Edvin Syse
Objet : text wrap not working
hi,
this is wht i tried but text wrap is not working.....any other solutions??
<BoxPane orientation="horizontal" styles="{ padding:{top:0, left:70,
bottom:8, right:4}}">
<Label
styleName="screenNormalText" text="Required SQL instance is already
installed on the machine. Please provide password for 'sa' user to perform
database opertations" styles="{wrapText:true}" preferredHeight="20"/>
</BoxPane>