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

Parts of feedback not showing in feedback with LaTeX math #425

Closed
Sardtok opened this issue May 27, 2013 · 2 comments
Closed

Parts of feedback not showing in feedback with LaTeX math #425

Sardtok opened this issue May 27, 2013 · 2 comments

Comments

@Sardtok
Copy link

Sardtok commented May 27, 2013

This seems to be a MathJAX + jQuery problem. The box containing the feedback is sized upon first rendering the text, then MathJAX converts LaTeX, which may increase the size of the feedback so it disappears behind the bottom edge.

Resizing the window (or making the window resized by opening the debugger) or switching tabs, will force it to render again, which will make the box get the appropriate size showing the rest of the content.

I suggest adding a callback to have jQuery re-render the box when MathJAX is done or wait until MathJAX is done before rendering.

@espenak
Copy link
Member

espenak commented May 28, 2013

Yes, this should be easy to fix as you describe. I think MathJaX has a callback function that we can use to re-render the box when mathjax is complete. Since this has a workaround, we will not release a new version just to fix this, but include a fix in the next release.

Workaround

Resize the browser window (see the issue description for more details)

espenak added a commit to espenak/devilry-django that referenced this issue May 28, 2013
This should be re-usable for all apps using mathjax (see devilry#425).
@torgeirl
Copy link
Collaborator

I assume this was solved somewhere between Devilry 1.2.x and 3.x, and if not it should be solved by replacing the ACE editor (issue #1217).

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

No branches or pull requests

3 participants