Fix for menu views appearing out of window