PopupControlSettings.PopupVerticalAlign Property
Gets or sets a popup window’s vertical alignment.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
PopupVerticalAlign | One of the PopupVerticalAlign enumeration values. |
Available values:
Name | Description |
---|---|
NotSet | A popup element is displayed on the y-coordinate of the mouse cursor position. |
Above | A popup element is displayed above the corresponding HTML element so that the y-coordinate of the popup element’s bottom border is equal to the y-coordinate of the HTML element’s top border. |
TopSides | A popup element is displayed so that the y-coordinate of the popup element’s top border equals the y-coordinate of the corresponding HTML element’s top border. |
Middle | A popup element is displayed so that the y-coordinate of the popup element’s center equals the y-coordinate of the corresponding HTML element’s center. |
BottomSides | A popup element is displayed so that the y-coordinate of the popup element’s bottom border equals the y-coordinate of the corresponding HTML element’s bottom border. |
Below | A popup element is displayed below the corresponding HTML element so that the y-coordinate of the popup element’s top border equals the y-coordinate of the HTML element’s bottom border. |
WindowCenter | A popup element is displayed so that it is vertically aligned at the center of the browser’s window. |
Remarks
The default popup window (or all popup windows from the PopupControlSettings.Windows collection) is aligned vertically on the y-coordinate of the mouse cursor position by default. Use the PopupVerticalAlign property to set the window alignment relative to the corresponding element specified by the PopupControlSettings.PopupElementID (PopupWindow.PopupElementID) property, or to display the window at the center of the browser window.