layout - How to add margin for a button in Flex -
in flex application have button next declaration placed above custom data-grid component.
<mx:button id="resetbutton" label="reset" visible="true" />
the button placed above grid , need move few pixels higher there little space between them.
i noticed there paddingbottom
attribute button component no marginbottom
equivalent.
i not find advice on google. right way accomplish this?
edit:
the bottom property did not have effect in case (perhaps due layout used) ended surrounding button new vbox component this:
<mx:vbox paddingbottom="5"> <mx:button id="resetbutton" label="reset" visible="true" /> </mx:vbox>
you can utilize top, bottom, left, right
attribute instead of margintop, marginbottom, marginleft, marginright
. function of top
same margintop
<mx:button id="btnsave" top="50" bottom="50" left="50" right="50" click="btnsave_clickhandler(event)" label="save file" />
may help you.
flex layout
No comments:
Post a Comment