Accounting for browser resize while the dropdown is open.