Fixes an issue where you could drag the menu off to the right-hand side of the screen