# Sandbox.UI.Popup.PositionMode

Dictates where a [Sandbox.UI.Popup](/api/Sandbox.UI.Popup) is positioned.

- Kind: enum
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Fields

- [`AboveCenter`](/api/Sandbox.UI.Popup.PositionMode/AboveCenter): Above, centered
- [`AboveLeft`](/api/Sandbox.UI.Popup.PositionMode/AboveLeft): Above the source panel, aligned to the left.
- [`AboveRight`](/api/Sandbox.UI.Popup.PositionMode/AboveRight): Above the source panel, aligned to the right.
- [`BelowCenter`](/api/Sandbox.UI.Popup.PositionMode/BelowCenter): Below the source panel, centered horizontally.
- [`BelowLeft`](/api/Sandbox.UI.Popup.PositionMode/BelowLeft): Below the source panel, aligned to the left.
- [`BelowRight`](/api/Sandbox.UI.Popup.PositionMode/BelowRight): Below the source panel, aligned to the right.
- [`BelowStretch`](/api/Sandbox.UI.Popup.PositionMode/BelowStretch): Below the source panel, stretch to the width of the [Sandbox.UI.Popup.PopupSource](/api/Sandbox.UI.Popup/PopupSource).
- [`Left`](/api/Sandbox.UI.Popup.PositionMode/Left): To the left of the source panel, centered.
- [`LeftBottom`](/api/Sandbox.UI.Popup.PositionMode/LeftBottom): To the left of the source panel, aligned to the bottom.
- [`Right`](/api/Sandbox.UI.Popup.PositionMode/Right): To the right of the source panel, centered.
- [`RightBottom`](/api/Sandbox.UI.Popup.PositionMode/RightBottom): To the right of the source panel, aligned to the bottom.
- [`RightTop`](/api/Sandbox.UI.Popup.PositionMode/RightTop): To the right of the source panel, aligned to the top. Where a submenu goes.
- [`UnderMouse`](/api/Sandbox.UI.Popup.PositionMode/UnderMouse): Position where the mouse cursor is currently
