0 Replies Latest reply on Feb 25, 2010 3:20 PM by achilles.heel

    how to suppress padding around text control when htmltext is used.

    achilles.heel

      Hello,

       

      Is there a way to suppress padding around text control when htmltext property is used.

      When the following code is run, output display renders some space at the top of text control and also between text control and label control. Is there a way to remove the padding at the top and bottom of text control.

       

      I would like the output display as follows.

       

      * First Item

      * Second Item

      Some text

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

           <mx:Text width="200"
              paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0">
              <mx:htmlText>
                  <![CDATA[
                      <p>
                          <li>First Item</li><li>Second Item</li>
                      </p>
                  ]]>
              </mx:htmlText>
          </mx:Text>
         
          <mx:Label text="Some text" />
        
      </mx:Application>

       

       

      Thank you,

      A.