Context Menu Demo

Explanation

Drag the blue box to see how the red box will be aligned.

Options

Alignments

Box sizes

Containment