Are you aware that if you want a bunch of
100 x 30 buttons, you don't have to specify width="100"
height="30" on every one of them? Just make a 2-line custom component
that defines default values for these properties and then use it instead: MyButton.mxml: <?xml version="1.0"
encoding="utf-8"?> <mx:Button
xmlns:mx="http://www.adobe.com/2006/mxml" width="100"
height="30"/> MyApp.mxml: <?xml version="1.0"
encoding="utf-8"?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:my="*" width="600"
height="600"> <my:MyButton/> <my:MyButton/> <my:MyButton/> </mx:Application> A lot of developers don't realize that
custom components are useful for simple things like this. - Gordon From: By design; x, y, width, and height are
regular properties, not styles. - Gordon From: Is it a bug or by design, that button's height and width
can't be set through CSS? Thanks ---Pablo Gustavo Apanasionek
|
- RE: [flexcoders] Button height and width in CSS? Gordon Smith
- RE: [flexcoders] Button height and width in CSS? Pablo Apanasionek
- Re: [flexcoders] Button height and width in CSS? Manish Jethani