menunav-handling the case for menus close to the right edge