                 if (!isNaN(right))
                      availableWidth -= right;
 
-                childWidth = availableWidth * Math.min(percentWidth * 0.01, 1);
+                childWidth = Math.round(availableWidth * Math.min(percentWidth * 0.01, 1));
                 elementMaxWidth = Math.min(elementMaxWidth,
                     maxSizeToFitIn(unscaledWidth, hCenter, left, right, layoutElement.getLayoutBoundsX()));
             }

            maxY = Math.max(maxY, childY + elementHeight);
        }

        layoutTarget.setContentSize(maxX, maxY);
    }
}


            }
            else if (!isNaN(baseline))
            {
                extY = Math.round(baseline - layoutElement.baselinePosition);
            }
            else if (!isNaN(top) || !isNaN(bottom))
            {
