DomPoint
A position object which instances are created and used by the getOptimalPosition helper.
top and left properties of the position instance
translate directly to the top and left properties in CSS "position: absolute coordinate system". If set on the positioned element
in DOM, they will make it display it in the right place in the viewport.
Properties
-
config : object | undefinedreadonlymodule:utils/dom/position~DomPoint#configAdditional position configuration, as passed from the positioning function.
This object can be use, for instance, to pass through presentation options used by the consumer of the
getOptimalPositionhelper. -
left : numberreadonlymodule:utils/dom/position~DomPoint#leftThe left value in pixels in the CSS
position: absolutecoordinate system. Set it on the positioned element in DOM to move it to the position. -
name : string | undefinedreadonlymodule:utils/dom/position~DomPoint#namePosition name.
-
top : numberreadonlymodule:utils/dom/position~DomPoint#topThe top value in pixels in the CSS
position: absolutecoordinate system. Set it on the positioned element in DOM to move it to the position.