Try setting padding on the Application as well and verticalGap on the app too.


On 3/8/10 12:02 PM, "chaitu05" <[email protected]> wrote:






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.






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to