support option for placing the dropdown on top or bottom, displaying it on the opposite direction if there is no room