powsybl-diagram
powsybl-diagram copied to clipboard
Running the layout is not idempotent
-
Do you want to request a feature or report a bug? Bug
-
What is the current behavior? Running the layout is not idempotent
-
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem Running twice the layout on the same Diagram object leads to ugly glitches (wider cells, floating internal nodes, margins between voltage levels wider, ....)
-
What is the expected behavior? Running twice the layout on the same Diagram object leads to the same SVG file
-
What is the motivation / use case for changing the behavior? Fixing a bug
-
Please tell us about your environment: PowSyBl Version: core 4.4.0 and sld 2.4.0
This does not really occur anymore, as it is not possible to run twice the layout directly with the new SingleLineDiagram interface. Nonetheless, the behaviour is not normal and should be investigated further
This does not really occur anymore, as it is not possible to run twice the layout directly with the new SingleLineDiagram interface. Nonetheless, the behaviour is not normal and should be investigated further
But we cannot suppose that everybody will use SingleLineDiagram. This is just a convenient utility class.
Yes, in fact that's what I meant by saying "not really".