             }
 
             if (isNaN(top) && isNaN(bottom) &&
-                isNaN(LayoutItemHelper.getConstraint(layoutItem, "verticalCenter")))
+                isNaN(LayoutItemHelper.parseConstraintValue(layoutItem.verticalCenter)))
             {
                 extY += layoutItem.actualPosition.y;
             }

            {
                childHeight = unscaledHeight - bottom - top;
            }
            else if (!isNaN(layoutItem.percentSize.y))
            {
                childHeight = unscaledHeight * Math.min(layoutItem.percentSize.y * 0.01, 1);
                itemMaxSize.y = Math.min(itemMaxSize.y,
                    maxSizeToFitIn(unscaledHeight, vCenter, top, bottom, childY));
            }

            {
                childWidth = unscaledWidth - right - left;
            }
            else if (!isNaN(layoutItem.percentWidth))
            {
                childWidth = unscaledWidth * Math.min(layoutItem.percentWidth * 0.01, 1);
                itemMaxSize.x = Math.min(itemMaxSize.x,
                    maxSizeToFitIn(unscaledWidth, hCenter, left, right, childX));
            }
