jQuery/JS Common - Object Structures - positionConfig - offset
The offset is specified in pixels. To set this property, use an object with the x and y fields. These fields specify horizontal and vertical offsets, respectively. Alternatively, you can use a string value that indicates the offsets separated by a whitespace character. A positive offset shifts the element to the right or down; a negative offset shifts it to the left or up.
In the following code, the overlay element is shifted 50 pixels to the right and 25 pixels up.
index.js
- $(function() {
- $("#popupContainer").dxPopup({
- // ...
- position: {
- // ...
- offset: "50 -25"
- // ===== or =====
- offset: { x: 50, y: -25 }
- }
- });
- });
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.