5 Replies Latest reply on Jul 14, 2009 11:00 PM by *Prashant Shelke*

    Eliminate Default Space Between Buttons

    phillipus_rex Level 1

      This seems like a very simple problem - however, I cannot seem to find the solution for it.

       

      I have a VBox container and a Panel with vertical layout.  Each of them contain several buttons that are about 40 pixels high and extend to fill the width of the container.  The buttons are displayed vertically, but it seems as if Flex automatically asigns about 3 pixels worth of space between each button.  How do I eliminate this space?  There isn't a "Margin" property associated with the button.

       

      Here is an example..

       

      <mx:Panel x="83.5" y="186"
      width="250"
      height="435"
      layout="vertical"
      backgroundColor="#FFFFFF"
      borderColor="#B59D9D">
                
                
                <mx:Button width="100%" height="40" cornerRadius="0" label="Clothing" fontSize="18" color="#363535" fontWeight="normal" fontFamily="Verdana" borderColor="#FCFAFA"/>
                <mx:Button width="100%" height="40" cornerRadius="0" label="E-Books" fontSize="18" color="#363535" fontWeight="normal" fontFamily="Verdana"/>
                <mx:Button width="100%" height="40" cornerRadius="0" label="Laptops" fontSize="18" color="#363535" fontWeight="normal" fontFamily="Verdana"/>
                <mx:Button width="100%" height="40" cornerRadius="0" label="Movies" fontSize="18" color="#363535" fontWeight="normal" fontFamily="Verdana"/>
                <mx:Button width="100%" height="40" cornerRadius="0" label="Music" fontSize="18" color="#363535" fontWeight="normal" fontFamily="Verdana"/>
                <mx:Button width="100%" height="40" cornerRadius="0" label="Phones" fontSize="18" color="#363535" fontWeight="normal" fontFamily="Verdana"/>
                <mx:Button width="100%" height="40" cornerRadius="0" label="Software" fontSize="18" color="#363535" fontWeight="normal" fontFamily="Verdana"/>
                
      </mx:Panel>