开发者

Flex 3 LinkButton width: Distorted Skin Image

开发者 https://www.devze.com 2023-01-03 22:28 出处:网络
I am using linkButtons with a background skin inside a linkBar with a dataProvider.A couple of the labels from the linkButtons are too long and开发者_C百科 distort the linkButton skin.How can I make a

I am using linkButtons with a background skin inside a linkBar with a dataProvider. A couple of the labels from the linkButtons are too long and开发者_C百科 distort the linkButton skin. How can I make all of the linkButtons labels the same width?


You can use an item renderer to render a set of data the way you wish.

You can include most of the components in custom renderers.

Check out the following articles

http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html

and

http://www.switchonthecode.com/tutorials/flex-using-item-renderers

Hope that helps!

Cheers,

Ernani


If you want the width to be based on the text then you have to pre-measure your text to figure out the max width and then pass that width into the itemRenderers.

0

精彩评论

暂无评论...
验证码 换一张
取 消