ITeye博客

flex的缩进

zhuxiangyan · 2010-07-14 10:16 · Flash/flex专区 · Web前端 · Flex · XML · Adobe · Markdown

原来这个缩进只是针对文本的。

 

<?xml version="1.0" encoding="utf-8"?>
<s:Application name="Spark_TextArea_paragraphStartIndent_text"
				xmlns:fx="http://ns.adobe.com/mxml/2009"
			xmlns:s="library://ns.adobe.com/flex/spark"
			xmlns:mx="library://ns.adobe.com/flex/halo" xmlns:mx1="library://ns.adobe.com/flex/mx" >
	 <s:layout>
		<s:VerticalLayout />
	</s:layout>
	   <mx1:ApplicationControlBar width="100%"  cornerRadius="0">
		  
				 <mx1:Form >
					 
					<mx1:FormItem label="paragraphStartIndent:">
							<s:HSlider id="sliderStart" liveDragging="true" />
					</mx1:FormItem>
					 
					<mx1:FormItem label="paragraphEndIndent:">
							<s:HSlider id="sliderEnd" liveDragging="true" />
					</mx1:FormItem>
					 
				</mx1:Form>
		   
		</mx1:ApplicationControlBar>
	
	  <s:Group width="100%" height="100%">
		  <s:TextArea id="textArea" textAlign="justify"
					  paragraphStartIndent="{sliderStart.value}"
		            paragraphEndIndent="{sliderEnd.value}"
		             left="10" right="10">																		27.                top="10" bottom="10">
			 sffsfdsf
		 </s:TextArea>
	 </s:Group>
	
	<s:Panel paragraphStartIndent="{sliderStart.value}" title="sdfdsfdsfds">
		<s:Button label="sfdsfds"/>
		<s:TextInput y="50" text="sdfdsfdsfdsf"/>
		<s:TextArea y="100" text="adsfsdfadfdsf"/>
	</s:Panel>
	  
 </s:Application>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。