                     {
                         parentH = target.parent.height;
                     }
-                    else if ("elementHost" in target && target.elementHost)
-                    {
-                        parentH = target.elementHost.height;
-                    }
                 }
                 
                 // For 'right' or 'horizontalCenter' we need the parent width

        {
            parent = target.parent;
        }
        else if ("elementHost" in target && target.elementHost)
        {
            parent = target.elementHost;
        }
        if (parent)
        {
            if (parent is Container)

                    if ("parent" in target && target.parent)
                    {
                        parentW = target.parent.width;
                    }
                }

