            case VerticalAlign.JUSTIFY: 
                return targetHeight;
            case VerticalAlign.CONTENT_JUSTIFY: 
-               return contentHeight;
+               return Math.max(elt.getPreferredBoundsHeight(), contentHeight);
        }
        return elt.getPreferredBoundsHeight();
     }

        var layoutTarget:GroupBase = target;
        if (!layoutTarget)
            return;
        if (virtualLayout)
            measureVirtual(layoutTarget);
        else 
            measureReal(layoutTarget);

            return;
        }
        
        var scrollR:Rectangle = getTargetScrollRect();
        if (!scrollR)
        {
            setIndexInView(0, n);
