We fixed some padding bugs in the Button classes. In Flex 2, if you
explicitly set a width, the button would ignore the padding in order to
fit the label. In Flex 3, we fixed this behavior so that padding is
always respected.
One solution for you is to adjust the paddingLeft/paddingRight values of
your buttons. You can try setting these on a Button type selector to see
if it works.
<mx:Style>
Button
{
paddingLeft: 0;
paddingRight: 0;
}
</mx:Style>
Ultimately, I'd recommend creating a class selector and referencing it
using the styleName property on all of your precisely sized buttons.
<mx:Style>
.myButton
{
paddingLeft: 0;
paddingRight: 0;
}
</mx:Style>
<mx:Button label="Try this" width="40" styleName="myButton"/>
Jason
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, March 20, 2008 12:02 PM
To: [email protected]
Subject: RE: [flexcoders] Flex2 versus Flex3 font size
There's a versioning flag that might help. I think the defaults for the
kind of embedded font rendering changed as well and that may be what the
problem is.
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of dougco2000
Sent: Thursday, March 20, 2008 10:58 AM
To: [email protected]
Subject: [flexcoders] Flex2 versus Flex3 font size
I switched to Flex3 the other day and found that the font sizing for
the default font has changed! So on most of my applications where I
painstakingly sized buttons so that they exactly fit the text label, I
know see the text does NOT FIT anymore and has "..." at the end!
I'm wondering how can this be easily resolved? Obviously I don't want
to go through a resizing on all my buttons.
Thanks