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

                    else
                        parentStart.removeChild(target);
                }
            }
            else if ("elementHost" in target && target.elementHost)
            {
                var hostStart:* = propertyChanges.start["elementHost"];
                var hostEnd:* = propertyChanges.end["elementHost"];
                if (hostStart && !hostEnd)
                    hostStart.removeItem(target);
            }
        }
    }

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

