Closed totaloutput closed 5 years ago
@totaloutput this slide-to-the-right behaviour appears to come from graphviz. You can reproduce it with a dot file that doesn't contain any layout info.
Here's a graphviz .dot file of the current testnet dag. If you render it to svg with:
cat dag.dot | dot -Tsvg > dag.svg
You'll see the same slide-to-the-right.
I think we should look into whether graphviz dot file format supports layout rules, so that we can keep the history of dag fairly straight even when it's quite long.
Using the graph-level ordering=out
attribute seems to help keep a tighter left-aligned graph for large dag renderings. In testing it didn't render beyond the boundaries of the screen.
I have a patch committed that applies this. We'll use it for now, and explore subgraphs or invisible edges as other means of maintaining layout if the need arises.
I'll push the patch along with the fix for #8.
Describe the bug in soterdash, the dag display page will shift to right when you scroll down.
To Reproduce Steps to reproduce the behavior:
Expected behavior DAG displays and continue.
Screenshots
this reproduce both on desktop and mobile.