Closed sparticvs closed 9 months ago
Can also be reproduced on threatdragon.com (v2.0.1-demo). Suspect issue affects all environments.
thanks @sparticvs and @ChristopherHackett , this is a very good point I have labeled it as something for version 2.0, in the hope that we can sort it for then
not able to work out how to implement this: https://x6.antv.vision/en/docs/api/graph/graph#autoresize
The work around is to close the diagram and open it again - it then resizes for the new window size
Need to document the workaround attempt to correct this did not work: see 5b5b48b62ccb450dd8fb5d16f94e9c65a8f43c3d
Can I work on this issue
hey @jgadsden! I have tried to implement auto resizing as described in https://x6.antv.vision/en/docs/api/graph/graph#autoresize but haven't been able to. I am still trying to get a way out. Meanwhile I have implemented the window resizing issue that is the core problem as described in this raised issue.
here's what the update does :
https://github.com/OWASP/threat-dragon/assets/94848646/9fa7f9c1-c500-455b-b9c7-c5c33b5453be
thanks @raghav1030 , do you want to provide a pull request for this? Any incremental improvement is appreciated
Describe the bug When the window is resized, the DFD drawing canvas doesn't resize with it.
Expected behaviour Expected the canvas to size to fill the window (or to have the ability to resize the panes in the window.
Environment
To Reproduce
Any additional context, screenshots, etc