Prevent UIMenu from going offscreen