PositioningFunction (utils/dom)
@ckeditor/ckeditor5-utils/src/dom/position
Parameters
elementRect : Rect
The rect of the element to be positioned.
targetRect : Rect
The rect of the target the element (its rect) is relatively positioned to.
viewportRect : Rect
The rect of the visual browser viewport.
[ limiterRect ] : Rect
Returns
PositioningFunctionResult | null
When the function returns
null
, it will not be considered bygetOptimalPosition
.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.