UofS-CEPHIL / modelcollab

A web-based application for collaborating on simulation models in real-time using Firebase
28 stars 0 forks source link

Textfield of SVG flows is not clickable sometimes #5

Closed longg-phamm closed 1 year ago

longg-phamm commented 2 years ago

The text field/label of SVG flows is not clickable sometimes. This is because when Flows are rendered, the SVG components may get stacked on each other, preventing the label to be clicked (we can still see it because SVG background is set to transparent).

Possible workarounds would be:

-To find another way to make the SVG canvas hug-fit to its children's shape object (using g tag) -Create another component called FlowCanvas and render every child shape object in one SVG -Replace SVG with other drawing libraries

longg-phamm commented 1 year ago

Switched to new design, this error is fixed