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

After initialization board continues to grow in size without stopping #592

Open
siefkenj opened this issue Dec 21, 2023 · 3 comments
Open

Comments

@siefkenj
Copy link

I have a simple webpage with the structure html > body > article > div#graph (in Firefox). When I call JSXGraph.initBoard("graph") it creates a graph and then continually resizes it to make it bigger and bigger. I was able to stop the issue by immediately calling board.stopResizeObserver(), but it seems this behavior is not the intended behavior?

@alfredwassermann
Copy link
Member

Thanks a lot for pointing out this problem. Of course this should not happen. As a quick workaround until we have a solution, you can also directly supply resize: {enabled: false} as board attribute. This should prevent that the ResizeObserver is startet at all.

Even if you wrote that the structure of your wesite is quite simple, can you please set up a jsfiddle or a minimal HTML file where this effect can be observed? I'm suppose the problem is caused by some combination of CSS properties.

@siefkenj
Copy link
Author

I went to create an example, but apparently after the recent changes to my source, the error no longer occurs. I am not sure if I'll be able to recreate what I had before...

@alfredwassermann
Copy link
Member

Please, send us the HTML / CSS code if you notice the bug again.

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