@worktile/theia 14.2.20 → 14.2.21
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.
|
@@ -9337,11 +9337,22 @@ const MentionEditor = {
|
|
|
9337
9337
|
offsetX: isSoftBreak ? 0 : cursorRect.x - textElementRect.x,
|
|
9338
9338
|
offsetY: isSoftBreak ? textElementRect.height : cursorRect.y - textElementRect.y + 20
|
|
9339
9339
|
};
|
|
9340
|
-
const
|
|
9340
|
+
const bottomLeftPosition = {
|
|
9341
|
+
...bottomPosition,
|
|
9342
|
+
overlayX: 'end',
|
|
9343
|
+
offsetX: isSoftBreak ? 0 : cursorRect.x - textElementRect.x + 10
|
|
9344
|
+
};
|
|
9345
|
+
const topRightPosition = {
|
|
9341
9346
|
...bottomPosition,
|
|
9342
9347
|
overlayY: 'bottom',
|
|
9343
9348
|
offsetY: cursorRect.y - textElementRect.y + (isSoftBreak ? cursorRect.height : 0)
|
|
9344
9349
|
};
|
|
9350
|
+
const topLeftPosition = {
|
|
9351
|
+
...topRightPosition,
|
|
9352
|
+
overlayX: 'end',
|
|
9353
|
+
overlayY: 'bottom',
|
|
9354
|
+
offsetX: isSoftBreak ? 0 : cursorRect.x - textElementRect.x + 10
|
|
9355
|
+
};
|
|
9345
9356
|
const overlay = editor.injector.get(Overlay);
|
|
9346
9357
|
return overlay
|
|
9347
9358
|
.position()
|
|
@@ -9349,7 +9360,7 @@ const MentionEditor = {
|
|
|
9349
9360
|
.withFlexibleDimensions(false)
|
|
9350
9361
|
.withGrowAfterOpen(false)
|
|
9351
9362
|
.withPush(false)
|
|
9352
|
-
.withPositions([bottomPosition,
|
|
9363
|
+
.withPositions([bottomPosition, bottomLeftPosition, topRightPosition, topLeftPosition]);
|
|
9353
9364
|
}
|
|
9354
9365
|
};
|
|
9355
9366
|
|