 			var maxHeight:Number = 0;
 			var verticalMargins:Array = [];
 			
-			for (var i:int = n - 1; i >= 0; i--)
+            var xx:Number = layoutParent.resizableView.width;
+            var padding:Object = determinePadding();
+            xx -= padding.paddingLeft + padding.paddingRight;
+            
+            for (var i:int = n - 1; i >= 0; i--)
 			{
 				var child:IUIBase = contentView.getElementAt(i) as IUIBase;
 				margin = ValuesManager.valuesImpl.getValue(child, "margin");

				else
					child.y = obj.marginTop;
			}
		}
	}
}

				}
				child.y = mt;
				maxHeight = Math.max(maxHeight, ml + child.height + mr);
				if (i == 0)
                {
                    child.x = ml;
