threat-dragon icon indicating copy to clipboard operation
threat-dragon copied to clipboard

provide dynamic resizing of the drawing panel

Open jeronomy opened this issue 2 years ago • 4 comments

Describe the bug Dynamic resizing during window resizing to get a "proper responsive user experience" would be very nice ! In versions v1.6.0 and also in the next upcoming v2.0, the drawing panel is not able to enlarge itself, when more space is availble.

Expected behaviour Would be nice to have the larger drawing panel possible, especially in futur v2, to increase usability & user experience

Environment Tested w/ Windows 10 desktop version.

This 'issue' is linked to this : https://github.com/OWASP/threat-dragon/issues/399#issuecomment-1091775573

jeronomy avatar Apr 12 '22 15:04 jeronomy

I made a pass at this during initial implementation and decided to revisit it later, as I couldn't get it to work reliably. There's a responsive attribute for the X6 diagram, but the machine-translated documentation isn't super clear on how it works. I do know that you need to be using flex. The issue could even be with how Bootstrap is using flexbox, or it could have simply been a lack of understanding on my part. :)

lreading avatar Apr 15 '22 16:04 lreading

Nice, thank you for getting time to poke around this issue again !

I do understand pretty well that I do understand very little about technical stuff outside "dependency version should match", but I will eventually take a closer look at the ThreadDragon's code for this feature this weekend (and also on the flexbox side of things, perhaps ?) By all means: don't raise expectation (for real results from me) - I only wish I could bring some real help tho (improving the overall user experience), instead of helping bury the team under hundreds of issues.

I do appreciate time & efforts put on the project ! Not only those code modifications which made it through mainline / stable!

Have a great one :)

jeronomy avatar Apr 15 '22 19:04 jeronomy

thanks for looking at this @jeronomy and @lreading - do you mind if I assign it to you both? You can always unassign it if you disagree :)

jgadsden avatar Apr 16 '22 06:04 jgadsden

Issue #422 shows we have problems with dynamic resizing in version 1.x (probably a JointJS problem), this was noted by @sparticvs

We can check that dynamic resizing in version 2.x does not do the same thing

jgadsden avatar Apr 21 '22 05:04 jgadsden

Version 2.x drawing library corrects this issue - closing it as Fixed

jgadsden avatar Jan 17 '23 07:01 jgadsden