ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

The Mention popup appears in the wrong location

Open Bloomingg opened this issue 1 year ago • 1 comments

📝 Provide detailed reproduction steps (if any)

  1. type @ to show mention list

✔️ Expected result

display where the full length of the list is shown

❌ Actual result

display where the full length of the list cannot be displayed. but when I scroll through the list, it jumps to the correct location

❓ Possible solution

maybe I just need to fix the pop-up position to caret_se, but I haven't found a way to do it.

📃 Other details

  • Browser: 121.0.6167.184
  • OS: MacOS
  • First affected CKEditor version: 41.0.0
  • Installed CKEditor plugins: @ckeditor/ckeditor5-mention

Bloomingg avatar Feb 21 '24 09:02 Bloomingg

image

after scroll: image

Bloomingg avatar Feb 21 '24 09:02 Bloomingg

@oleq what's the best solution is such cases? I assume the balloon just recognizes there's a place below, and shows there.

Witoso avatar Mar 04 '24 09:03 Witoso

I don't know what is the real issue here without researching. It could be that the panel is not full-height upon opening because the content is not fully loaded yet. And that's why the algorithm assumes it will fit to the bottom of the @ marker. Then, when you scroll, the panel is fully rendered (it grew vertically) and the algorithm repositions it to the north because there's not enough space. It's a wild guess, though.

oleq avatar Mar 08 '24 15:03 oleq