@ckeditor/ckeditor5-ui 47.0.0-alpha.3 → 47.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3894,6 +3894,10 @@ const toPx$6 = /* #__PURE__ */ toUnit('px');
3894
3894
  return;
3895
3895
  } else if (typeof this.position == 'function') {
3896
3896
  const coords = this.position(dialogRect, domRootRect);
3897
+ if (coords == null) {
3898
+ this._moveOffScreen();
3899
+ return;
3900
+ }
3897
3901
  this._moveTo(coords.left, coords.top);
3898
3902
  return;
3899
3903
  }