Re: [flexcoders] Flex2 versus Flex3 font size
On Thu, Mar 20, 2008 at 05:57:35PM -, dougco2000 wrote: 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! Same thing here, text wouldn't fit buttons, bottom of windows were cutting off controls, controls that were previously horizontally aligned were no longer in line, listboxes without default selections that previously returned 0 as the selected index returned -1 in Flex 3. We went through all the apps and adjusted everything, it was far from a drop-in-place upgrade for us and we don't really have any complicated code or layouts. Jeff
RE: [flexcoders] Flex2 versus Flex3 font size
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Thursday, March 20, 2008 12:02 PM To: flexcoders@yahoogroups.com 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dougco2000 Sent: Thursday, March 20, 2008 10:58 AM To: flexcoders@yahoogroups.com 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