             var xx:Number = layoutParent.resizableView.width;
             if (isNaN(xx) || xx <= 0)
                 return true;
-            var padding:Object = determinePadding();
-            // some browsers don't like it when you go all the way to the right edge.
-            xx -= padding.paddingLeft + padding.paddingRight + 1;
+            var uiMetrics:UIMetrics = BeadMetrics.getMetrics(layoutParent.resizableView);
+            xx -= uiMetrics.left + uiMetrics.right + 1; // some browsers won't layout to the edge
             
             for (var i:int = n - 1; i >= 0; i--)
 			{

	import org.apache.flex.core.IUIBase;
	import org.apache.flex.core.IViewport;
	import org.apache.flex.core.IViewportModel;
	import org.apache.flex.html.supportClasses.Viewport;
	import org.apache.flex.core.UIBase;
	import org.apache.flex.core.ValuesManager;
	import org.apache.flex.events.Event;
	import org.apache.flex.events.IEventDispatcher;

    /**
     *  The FlexibleFirstChildHorizontalLayout class is a simple layout

            return sizeChanged;
		}

    }
        
}
