Testing if the dropdown is opened before call positionDropdown, on  events by resize, scroll and orientation