bug fix to make sure the whole dropdown is always visible