开发者

flex togglebuttonbar buttons width

开发者 https://www.devze.com 2023-01-11 11:01 出处:网络
How could i use percentage width for buttons at tooglebutton开发者_如何转开发bar, because i dont want to use the width property.To set percentage width of a component:

How could i use percentage width for buttons at tooglebutton开发者_如何转开发bar, because i dont want to use the width property.


To set percentage width of a component:

  1. In MXML, you can set the width property using a percentage value.

  2. In AS3, use the percentWidth property.

However, if you want to set the percentage width of buttons in a toggleButtonBar you can look at the buttonWidth style, but I suspect that doesn't accept percentages. If not, you're going to have to extend the component and re-write the updateDisplayList() method to size and position the buttons based on a percentage.

0

精彩评论

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