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

                                                                spaceToDistribute,
                                                                totalPercentHeight,
                                                                childInfoArray);
            
            for each (childInfo in childInfoArray)
            {
                sizeLayoutElement(childInfo.layoutElement, width, horizontalAlign, 
                               restrictedWidth, childInfo.size, 
                               variableRowHeight, rh);
            }
        }

                
            // 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
