 
         // Make sure that if the content spans partially over a pixel to the right/bottom,
         // the content size includes the whole pixel.
-        layoutTarget.setContentSize(Math.ceil(llv.end(llv.length - 1) + paddingRight),
-                                    Math.ceil(contentHeight + paddingTop + paddingBottom));
+        var paddedContentWidth:Number = Math.ceil(llv.end(llv.length - 1) + paddingRight);
+        var paddedContentHeight:Number = Math.ceil(contentHeight + paddingTop + paddingBottom);
+        layoutTarget.setContentSize(paddedContentWidth, paddedContentHeight);
     }
     
     /**


package spark.layouts
{
import flash.display.DisplayObject;
import flash.events.Event; 
import flash.events.EventDispatcher;
import flash.geom.Point;
import flash.geom.Rectangle;

import mx.containers.utilityClasses.Flex;


        // Second pass: if neccessary, fix up y and height values based
        // on the updated contentHeight
        if (!justifyHeights && (llv.minorSize != contentHeight))
        {
            contentHeight = llv.minorSize;
            containerHeight = Math.max(contentHeight, targetHeight);            
