react-flow-chart
react-flow-chart copied to clipboard
Firefox browser support problem
Everything works fine in Chrome. However, there is a problem with browser support for the "react-transform-element" class in the firefox browser. Div has width: 20k pixels, height: 20k pixels. But firefox gives a maximum width of 1280px.
I think the problem is caused by the css elements below.
width: fit-content; height: fit-content;
I found a solution like this.
display: table;
or
width: -moz-max-content;
or
.react-transform-element{ /* Browser Support*/ width: -moz-max-content; }
Has anyone experienced this problem like me?
I don't have this problem in Firefox with a 20k by 20k Canvas. Could you post your Flowchart code and css relating to the bug?
The version that I have not made any changes is attached.
My solution here. width: -moz-max-content;
You can see the sizes from the right.