Easer icon indicating copy to clipboard operation
Easer copied to clipboard

Pivot isn't always well arranged

Open just-Nob opened this issue 4 years ago • 2 comments

Describe the bug The pivot display isn't always well arranged, see screenshot: Pivot.png Although it could be displeased one near the other, there's a long connecting arrow over nearly the whole screen.

To Reproduce Steps to reproduce the behavior:

  1. Add some chains.
  2. In pivot view (maybe also in data view mode), edit one of the scripts that have a parent script at one of the leftmost chains.
  3. Add a second predecessor to the currently edited script. Choose one of those without a parent/predecessor from th rightmost chains.
  4. The additional connecting arrow is drawn from right to left through all the scripts/chains in between as shown in the screenshot above.

Expected behavior I expected a rearrangement of the script s order to minimize connecting arrows' length.

Extra phone info (please complete the following information):

  • ROM: ArrowOS 11
  • microG
  • rooted with Magisk

just-Nob avatar Sep 05 '21 20:09 just-Nob

Thanks for filing this bug report. Indeed, this is very friendly...

I will give it a try, but suspect this eventually lies in the library used to draw the hierarchical tree view (GraphView).

renyuneyun avatar Sep 06 '21 20:09 renyuneyun

I guess this is causes by changing the connection in hindsight. "Fresh" added chains don't seem to fail.

Do isn't it possible to throw all data into the algorithm/library like it's "fresh drawn"? (Sorry, this may be somehow naive, but I don't know how it's implemented.)

just-Nob avatar Sep 07 '21 04:09 just-Nob