andykirk / CKEditorFootnotes

Footnotes plugin for CKEditor
17 stars 22 forks source link

Re-layout dialog after textarea is loaded to fix scroll behaviour #29

Open lukasvice opened 6 years ago

lukasvice commented 6 years ago

Regarding https://github.com/andykirk/CKEditorFootnotes/issues/12

CKEditor handles the position of the dialog correctly even if the viewport is smaller than the dialog. The problem was that the initialization of the footnote's CKEditor changed the height of the dialog after the dialog's layouting. If that happens, a re-layout of the dialog is necessary to fix the position of the dialog.

andykirk commented 6 years ago

Ah, I understand. Thanks for this. It's really helpful. I'll check it out as soon as I can and merge.

Thanks again.