Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview workaround scrolling issue #138

Open
JinalSinroja opened this issue Apr 22, 2024 · 3 comments
Open

Preview workaround scrolling issue #138

JinalSinroja opened this issue Apr 22, 2024 · 3 comments

Comments

@JinalSinroja
Copy link

I am having scrolling issue with the formula preview, as you have stated here that rendering element is out of ckeditor dom and you are giving absolute position according to the window.

image

what my issue is, I'm not using the window scroll

math-scroll-issue.mp4

So the absolute position is stick to the window , which is not scrollable.

@JinalSinroja
Copy link
Author

We also couldn't get it right with ckeditor scroll too. it only takes the window scroll, so whenever we scroll into ckeditor area, it stays at the place, it doesn't scroll with the pop up

Here is the video to get the better idea.

Scroll-in-ckeditor.mp4

@tony
Copy link
Collaborator

tony commented May 18, 2024

@JinalSinroja The formula preview itself shows up in a different part of page - so its hard to reach with Inspector / Devtools.

If you were to use previewClassName and popupClassName, and adjust the CSS within those classnames, does that help?

While I can't solve the problem for you, it looks like its something to do with z-index or position.

@JinalSinroja
Copy link
Author

@tony Thanks for responding.

We applied the approach of updating the position of math-preview div. We are listening on scroll event and updating the position of preview class, as we didn't have any other option better than this

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants