         }
 
         // If we're justifying the elements, then all heights should be set to
-        // unscaledHeight.  If we're content justifying the elements, then 
+        // targetHeight.  If we're content justifying the elements, then 
         // all heights should be set to the contentHeight.
         // Otherwise restrictedHeight is ignored in distributedWidth.
         var restrictedHeight:Number;
         if (verticalAlign == VerticalAlign.JUSTIFY)
-            restrictedHeight = unscaledHeight;
+            restrictedHeight = targetHeight;
         else if (verticalAlign == VerticalAlign.CONTENT_JUSTIFY)
             restrictedHeight = contentHeight;
 
-        distributeWidth(unscaledWidth, unscaledHeight, restrictedHeight);    
+        distributeWidth(targetWidth, targetHeight, restrictedHeight);    
         
         // default to top (0)
         var vAlign:Number = 0;

            }
        }   

        setIndexInView(i0, i1);
    }


        // we'll count how many columns fall within the layoutTarget's scrollRect
        var visibleColumns:uint = 0;
        var minVisibleX:Number = layoutTarget.horizontalScrollPosition;
        var maxVisibleX:Number = minVisibleX + targetWidth
            
        // Finally, position the LayoutElements and find the first/last
        // visible indices, the content size, and the number of 
