added auto option for orientation property and also throw an Error if component is not placed inside a relative positioned parent