Setting button width with fx:Style
Posted
by Kamo
on Stack Overflow
See other posts from Stack Overflow
or by Kamo
Published on 2010-05-30T07:53:30Z
Indexed on
2010/05/30
8:02 UTC
Read the original article
Hit count: 252
I have 4 buttons, all of them have the same width.
<s:Button id="btn1" width="{btnWidth}" />
<s:Button id="btn2" width="{btnWidth}" />
<s:Button id="btn3" width="{btnWidth}" />
<s:Button id="btn4" width="{btnWidth}" />
Is it possible to set their width with Style
, something like this:
s|Button{
width: btnWidth;
}
I tried it, but auto-complete isn't working, which leads me to think that there's something wrong with the syntax. Basically my goal is to not have the width
property set specifically for all 4.
© Stack Overflow or respective owner