Prevent UIMenu from going over the screen in the IDE.