-
Notifications
You must be signed in to change notification settings - Fork 185
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
MathJAX: after loading, HTML dimensions may have changed (render pass), need to refresh column-pagination #150
Comments
Perhaps something along the lines of: https://github.com/readium/readium-shared-js/blob/develop/js/views/iframe_loader.js#L119 (here, the "done" callback is only invoked upon completion of a timed MathJAX task...but not sure how many equations are rendered exactly) |
Test EPUB: https://github.com/readium/readium-js-viewer/tree/develop/epub_content/linear-algebra (some pages are really quite heavy...long wait time before render complete...but I think the column-pagination does not compute the correct number of pages) |
The 8 second timeout was causing this. If we are going to have a timeout, we should show an error since pagination would be broken if we tried to continue. I've removed the timeout for now. |
8s timeout removal: |
See readium/readium-shared-js#82 for more information from MathJAX devs. |
...otherwise, the number of pages (columns) is determined based on the HTML dimensions that do not reflect the final render.
The text was updated successfully, but these errors were encountered: