Unstable bug - can't render hidden nodes with centered text in Firefox #6022
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
Mermaid fails on rendering with hidden nodes
Very unstable bug. Shows up while changing unrelated nodes.
View fail Error: Could not find a suitable point for the given distance
Steps to reproduce
Open the Code Sample at https://mermaid.live / Firefox:
When adding a text in any centralized link, the mermaid breaks.
Console show error:
view fail Error: Could not find a suitable point for the given distance
View.BDXPUeKn.js:15:41668
y Immutable
If you remove both
|text|
it runs fine.If you break symmetry, it also runs fine:
https://mermaid.live/edit#pako:eNptjz0OwjAMRq8SeW4vkIEBysgEE8piNW4TqUmq4Kigtncn_UEs9WL76VnWN0IdNIGEpgtDbTCyeFTKi73OoixPYnpPwlhNUsrcNPm_sODVuRyw5a464NeNQQGOokOr8_9xYQrYkCMFMo-aGkwdK1B-ziomDvePr0FyTFRA6jUyVRbbiO4HSVsO8bZFWpMVEENqDcgGu1c2evTPENy-z1_Bkk2n
Screenshots
Working at Chrome (but the
:::hidden
style still persists the geometry)Fails at Firefox when I try to add a text anywhere in the central row
Code Sample
Setup
Mermaidv11.3.0
,Mermaidv11.3.0+ece3b25
]Firefox - 132.0 (64-bit)
] - it works fine in ChromeSuggested Solutions
No response
Additional Context
Unsure if related:
I also noticed Firefox will collapse the height as I expected.
Chrome requires to force
style hide height:0px;
to achieve the same result.The text was updated successfully, but these errors were encountered: