ckeditor5
ckeditor5 copied to clipboard
The Mention popup appears in the wrong location
📝 Provide detailed reproduction steps (if any)
- 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
after scroll:
@oleq what's the best solution is such cases? I assume the balloon just recognizes there's a place below, and shows there.
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.