Fix for menu dropdown animation.

This fixes the janky movement seen when the dropdown items are selected.

Tested in latest Firefox, Chrome and Safari.