Here a test Project: <?xml version="1.0"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" > <fx:Script></fx:Script> <s:List dataProvider="{dataD}" itemRenderer="TestItemRenderer" > <s:layout> <s:VerticalLayout gap="10"/> </s:layout> </s:List> </s:View>
<?xml version="1.0"?> <s:Group width="115" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" implements="mx.core.IDataRenderer, spark.components.IItemRenderer"> <fx:Style> @font-face { src:url("assets/arial.ttf"); fontFamily: myFontFamily; embedAsCFF: true; } </fx:Style> <s:Rect left="0" right="0" top="0" bottom="0" radiusX="5" radiusY="5"> <s:fill> <s:SolidColor color="0xFF0000"/> </s:fill> </s:Rect> <s:Label id="labelComp" maxWidth="115" paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10" fontSize="12" fontFamily="myFontFamily"/> <fx:Script></fx:Script> </s:Group> as long as the labelComp has a maxWidth=115 it is broken... having width=115 everything is fine... <http://apache-flex-users.2333346.n4.nabble.com/file/n14710/label.gif> -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Measuring-from-of-Label-with-padding-strange-incorrect-tp14708p14710.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
