浏览代码

Since Rect supports ClientRect as a source, so does getOptimalPosition.

Aleksander Nowodzinski 9 年之前
父节点
当前提交
d8047265c5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-utils/src/dom/position.js

+ 2 - 2
packages/ckeditor5-utils/src/dom/position.js

@@ -183,7 +183,7 @@ function getAbsoluteRectCoordinates( { left, top } ) {
 /**
  * Target with respect to which the `element` is to be positioned.
  *
- * @member {HTMLElement|Range} module:utils/dom/position~Options#target
+ * @member {HTMLElement|Range|ClientRect} module:utils/dom/position~Options#target
  */
 
 /**
@@ -197,7 +197,7 @@ function getAbsoluteRectCoordinates( { left, top } ) {
  * When set, the algorithm will chose position which fits the most in the
  * limiter's bounding rect.
  *
- * @member {HTMLElement|Range} module:utils/dom/position~Options#limiter
+ * @member {HTMLElement|Range|ClientRect} module:utils/dom/position~Options#limiter
  */
 
 /**