        switch(horizontalAlign)
        {
            case HorizontalAlign.CENTER: 
-               return (containerWidth - eltWidth) * 0.5;
+               return Math.round((containerWidth - eltWidth) * 0.5);
            case HorizontalAlign.RIGHT: 
                return containerWidth - eltWidth;
        }


    private static function calculatePercentWidth(layoutElement:ILayoutElement, width:Number):Number
    {
    	var percentWidth:Number = LayoutElementHelper.pinBetween(layoutElement.percentWidth * 0.01 * width,
    	                                                         layoutElement.getMinBoundsWidth(),
    	                                                         layoutElement.getMaxBoundsWidth() );
    	return percentWidth < width ? percentWidth : width;

                
            // Set the layout element's position
            var x:Number = (containerWidth - layoutElement.getLayoutBoundsWidth()) * hAlign;
            // In case we have HorizontalAlign.CENTER we have to round
            if (hAlign == 0.5)
                x = Math.round(x);
            layoutElement.setLayoutBoundsPosition(x, y);
                            
            // Update maxX,Y, first,lastVisibleIndex, and y
