Correct context menu position

If it would appear outside the screen, this pushes it back in.