Revert "Fix menu display when in the edge of the screen"

This reverts commit cbe323f679bd499d13f6fc09a92d14ff534b05ff.