Fix alignment of right aligned dropdowns, fixes #17744
(cherry picked from commit 0984b1ee62a6659b3f9013a34f16357cf8cabb99)

Conflicts:
	tests/_HasDropDown.html