      */
 	public static function getMetrics(object:Object) : UIMetrics
 	{
-		var borderThickness:Object = ValuesManager.valuesImpl.getValue(object,"border-thickness");
+		var borderThickness:Object = ValuesManager.valuesImpl.getValue(object,"border-width");
 		var borderOffset:Number;
-		if( borderThickness == null ) {
-			borderOffset = 0;
+		if( borderThickness == null ) 
+        {
+            borderThickness = ValuesManager.valuesImpl.getValue(object,"border");
+            if (borderThickness != null)
+            {
+                if (borderThickness is Array)
+                    borderOffset = CSSUtils.toNumber(borderThickness[0], object.width);
+                else
+                    borderOffset = CSSUtils.toNumber(borderThickness as String, object.width);
+            }
+            else
+                borderOffset = 0;
 		}
 		else {
 			borderOffset = Number(borderThickness);

		var marginBottom:Object;
		var margin:Object;
		margin = ValuesManager.valuesImpl.getValue(object, "margin");
		
		if (margin is Array)
		{
			if (margin.length == 1)
				marginLeft = marginTop = marginRight = marginBottom = margin[0];
			else if (margin.length <= 3)
			{
				marginLeft = marginRight = margin[1];
				marginTop = marginBottom = margin[0];
			}
			else if (margin.length == 4)
			{
				marginLeft = margin[3];
				marginBottom = margin[2];
				marginRight = margin[1];
				marginTop = margin[0];					
			}
		}
		else if (margin == null)
		{
			marginLeft = ValuesManager.valuesImpl.getValue(object, "margin-left");
			marginTop = ValuesManager.valuesImpl.getValue(object, "margin-top");
			marginRight = ValuesManager.valuesImpl.getValue(object, "margin-right");
			marginBottom = ValuesManager.valuesImpl.getValue(object, "margin-bottom");
		}
		else
		{
			marginLeft = marginTop = marginBottom = marginRight = margin;
		}
		var ml:Number;
		var mr:Number;
		var mt:Number;

		var paddingBottom:Object;
		
		var padding:Object = ValuesManager.valuesImpl.getValue(object, "padding");
		paddingLeft = ValuesManager.valuesImpl.getValue(object, "padding-left");
		paddingTop = ValuesManager.valuesImpl.getValue(object, "padding-top");
		paddingRight = ValuesManager.valuesImpl.getValue(object, "padding-right");
		paddingBottom = ValuesManager.valuesImpl.getValue(object, "padding-bottom");
		var pl:Number = CSSUtils.getLeftValue(paddingLeft, padding, object.width);
		var pt:Number = CSSUtils.getTopValue(paddingTop, padding, object.height);
		var pr:Number = CSSUtils.getRightValue(paddingRight, padding, object.width);
		var pb:Number = CSSUtils.getBottomValue(paddingBottom, padding, object.height);
		
		var marginLeft:Object;
		var marginRight:Object;
