Fix the dropdown menu appearing off the side of the screen.