Simple experimental proof: resize the window to be very small, and open a menu. The menu can't go outside the bounds of the window.
Simple experimental proof: resize the window to be very small, and open a menu. The menu can't go outside the bounds of the window.