You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Frank Dahmen <fr...@dahmenia.de> on 2013/08/31 07:21:59 UTC
Label does not get truncated in FormItem
Hi,
in a mobile project i have:
<s:VGroup width="100%" paddingLeft="25" paddingRight="25">
<s:Form>
<s:FormItem label="label">
<s:Label text="{longText}" />
</s:FormItem>
</s:Form>
</s:VGroup>
the Label is not truncated even if i set Form or ForrmItem to a small width
like width="100"
it is also not clipped at the supposed width, like it has no bounds at all
what I'm doing wrong?
Thanks
Re: Label does not get truncated in FormItem
Posted by Frank Dahmen <fr...@dahmenia.de>.
Thanks, that worked :)
----- Original Message -----
From: "Evyatar Ben Halevi-Arbib" <ev...@gmail.com>
To: <us...@flex.apache.org>
Sent: Saturday, August 31, 2013 7:29 AM
Subject: Re: Label does not get truncated in FormItem
> 1. Add to the label maxDisplayedLines="1" (and consider also
> showTruncationTip="true").
> 2. Add width="100%" on Form, FormItem and the Label itself (or limit all
> of
> them with some other value).
>
> Good luck,
> Evyatar
>
>
> On Sat, Aug 31, 2013 at 8:21 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
>
>> Hi,
>> in a mobile project i have:
>>
>> <s:VGroup width="100%" paddingLeft="25" paddingRight="25">
>> <s:Form>
>> <s:FormItem label="label">
>> <s:Label text="{longText}" />
>> </s:FormItem>
>> </s:Form>
>> </s:VGroup>
>>
>>
>> the Label is not truncated even if i set Form or ForrmItem to a small
>> width like width="100"
>>
>> it is also not clipped at the supposed width, like it has no bounds at
>> all
>>
>> what I'm doing wrong?
>>
>> Thanks
>>
>>
>>
>>
>
Re: Label does not get truncated in FormItem
Posted by Evyatar Ben Halevi-Arbib <ev...@gmail.com>.
1. Add to the label maxDisplayedLines="1" (and consider also
showTruncationTip="true").
2. Add width="100%" on Form, FormItem and the Label itself (or limit all of
them with some other value).
Good luck,
Evyatar
On Sat, Aug 31, 2013 at 8:21 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
> Hi,
> in a mobile project i have:
>
> <s:VGroup width="100%" paddingLeft="25" paddingRight="25">
> <s:Form>
> <s:FormItem label="label">
> <s:Label text="{longText}" />
> </s:FormItem>
> </s:Form>
> </s:VGroup>
>
>
> the Label is not truncated even if i set Form or ForrmItem to a small
> width like width="100"
>
> it is also not clipped at the supposed width, like it has no bounds at all
>
> what I'm doing wrong?
>
> Thanks
>
>
>
>