-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
Issue for embedded cytoscape graphs #3755
Comments
Probably CSS. Position: absolute needs a parent of which the position is also set.
|
Fixes hakimel#3755 Add `position: relative` to `.image-zone` class to fix canvas alignment issue in embedded Cytoscape.js graph. * Modify `css/reveal.scss` to include `position: relative` for `.image-zone` class. * Update `plugin/math/math.js` and `plugin/math/math.esm.js` to include `code` in the `skipTags` array for `tex2jax` configuration. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/hakimel/reveal.js/issues/3755?shareId=XXXX-XXXX-XXXX-XXXX).
Thanks for the reply, Martin. |
I found a way to manage it
No I've to find the good strategy to embed graphs in presentation, managing the dynamic creation of the cy container |
I'm preparing a cursus on semantic interoperability, for which I want include in a section a cystoscape.js graph.
It lead to integrate a div as a container for a canvas representation of the visual graph within a section.
I'm facing here a problem, with the positioning of the canvas and the div being not aligned anymore in the displayed sections/slides.
I didn't succeed in catching which mechanism is leading to this within reveal: some CCS, code logic...?
The canvas is translated to the right compared to the container, a half width of the container to the right.
Any idea concerning what the reason can be? Did you face similar issues in your usage of reveal.js?
The text was updated successfully, but these errors were encountered: