PDA

View Full Version : [CLOSED] Cannot Increase Text Width in TagLabel



iansriley
Jul 31, 2014, 8:59 PM
Hi, I want to use the TagLabel from the examples explorer, but it looks like it stops at about 15 characters regardless of the width of the tag. Is there a setting or custom config or something that I can set to be able to use this control?



<ext:Panel ID="Panel2" runat="server" Title="Home">
<Items>
<ext:TagLabel ID="TagLabel1" runat="server" Stacked="true" Padding="10" Width="200">
<Tags>
<ext:Tag Text="This is a long tag in the tag label">
</ext:Tag>
</Tags>
</ext:TagLabel>
</Items>
</ext:Panel>

Daniil
Aug 01, 2014, 6:32 AM
Hi @iansriley,

Please use a TagLabel's MaxLength.

MaxLength="50"

It is 18 by default.

iansriley
Aug 01, 2014, 2:18 PM
Last little request, is there a way to make the icon for a tagfield show up on the right side instead of the left?



.clsIcon
{
text-align: right;
}




<ext:TagLabel ID="TagLabel1" runat="server" Stacked="true" Padding="10" Width="200" MaxLength="180">
<Tags>
<ext:Tag Text="" IconCls="clsIcon" Icon="Accept">
</ext:Tag>
</Tags>
</ext:TagLabel>

Vladimir
Aug 01, 2014, 3:50 PM
Try to apply the following css rules to tag

padding-right: 25px !important;
background-position: right 5px center !important;

iansriley
Aug 04, 2014, 4:20 PM
[CLOSED]

Thank You,