sibiraj-s / ngx-editor

🖋️ Rich Text Editor for angular using ProseMirror
https://sibiraj-s.github.io/ngx-editor/
MIT License
457 stars 191 forks source link

[Bug]: Link menu dropdown hidden if editor is too close to the view's end. #576

Open jsmalme opened 2 months ago

jsmalme commented 2 months ago

What happened?

I'm working with an editor in a modal, and I have the link item in the menu as one of the first options. Unfortunately, this ends up cutting off the link drop-down because it's too close to the end of the modal window. I was able to reproduce a similar outcome in the stackblitz by changing the window size and setting the link menu item as the first option in the list.

ngx-link-issue

Version

v7.8.1

Angular Version

v18

What browsers are you seeing the problem on?

Chrome

Link to reproduce

https://stackblitz.com/edit/ngx-editor-rgntkb?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html

Relevant log output

No response

Willing to submit a PR?

None