Improved hiding of dropdown: Instead of using negative left/right position the dropdown visibility is now controlled by display attribute.