-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Open
Labels
Graph: PieStatus: TriageNeeds to be verified, categorized, etcNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect
Description
Description
With securityLevel: "sandbox"
, mermaid will output an iframe
, but it appears that on some charts like pie, this iframe's height does not match the SVG element. In the example below, svg height is 254px, but iframe height is 450px.
The iframe height does match the height value in viewBox
but does not take into account that the SVG is scaled down, so its viewbox height does not match the rendered height. I think the fix will be to take into account the scaling of the SVG when calculating iframe height.
Steps to reproduce
(Click cancel to preserve config)
Screenshots
(color issue in iframe is a separate bug and can be fixed by adding color-scheme:normal
to the iframe's CSS).
Setup
- Mermaid version: 10.1.0
- Browser and Version: all
jmandel
Metadata
Metadata
Assignees
Labels
Graph: PieStatus: TriageNeeds to be verified, categorized, etcNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect