 
                 for (i = 0; i < n; i++)
                 {
-                    child = IUIComponent(getChildAt(i));
+                    child = getLayoutChildAt(i);
                     child.move(Math.floor(left), top);
                     left += child.width + horizontalGap;
                 }

            // don't know what controlWidth will be)
            for (i = 0; i < numChildren; i++)
            {
                child = IUIComponent(getChildAt(i));
                
                if (!child.includeInLayout)
                    continue;

            // the fixed height and the percentage height for each row
            for (i = 0; i < numChildren; i++)
            {
                child = getLayoutChildAt(i);
                
                if (!child.includeInLayout)
                {
