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

[Video] Strange math expression scaling problem #19

Open
ggunti opened this issue Sep 19, 2020 · 0 comments
Open

[Video] Strange math expression scaling problem #19

ggunti opened this issue Sep 19, 2020 · 0 comments

Comments

@ggunti
Copy link

ggunti commented Sep 19, 2020

Hi,

I have an interesting problem. When I load my react app, the Home page is loaded first. It renders some math expressions using this library.

The problem is that math expressions scaling is not always applied. I use scale: 200, but it is only applied if I navigate to another page (Settings for example) and then navigate back to Home (see attached video). For example, if I am on the Home page and then reload the entire app, scaling is NOT applied after app is reloaded (again, please see the attached video to understand better).

Video: https://vimeo.com/459645756

This is what I mean by "Scaled" and "Not Scaled":
Captură de ecran din 2020-09-19 la 12 21 53
Captură de ecran din 2020-09-19 la 12 20 39

The mathjax related code (note that I tried to use also MathJax.Node, but same thing happens):

      <MathJax.Context input='tex' options={{
        CommonHTML: {
          scale: 200, // apply scaling to math expressions
        },
      }}>
        <MathJax.Text text={this.props.mathWithText} />
      </MathJax.Context>

PS: I think it's some synchronization related problem, but I am unable to solve it. I would be grateful for any help.

@ggunti ggunti changed the title Strange math expression scaling problem [Video] Strange math expression scaling problem Sep 19, 2020
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

1 participant