Fix alignment of right aligned dropdowns, fixes #17744