Testing if the dropdown is opened before call positionDropdown, on  events by resize, scroll and orientation
Avoid call 'positionDropdown' function if the container it's closed
Merge pull request #2287 from eduardojmatos/master

Testing if the dropdown is opened before call positionDropdown