Setting the padding of a parent node to 0 should result in the child node being placed in the same origin as its parent. This appears to be a rendering issue in the VS Code extension. Below is an example diagram as well as the expected result (as it is in Kieler) and the actual result in VS Code.
The position of the child node is wrong and the actual size is also too large.
Sample SCChart
scchart PaddingExample {
@layout[elk.padding] "[top=0.0,left=0.0,bottom=0.0,right=0.0]"
region reg "" {
initial state SystemStateWithLongName
}
}
Result in Kieler
Result in the VSCode Extension
Exporting the diagram as a kgx from Kieler and viewing in VSCode
Setting the padding of a parent node to 0 should result in the child node being placed in the same origin as its parent. This appears to be a rendering issue in the VS Code extension. Below is an example diagram as well as the expected result (as it is in Kieler) and the actual result in VS Code.
The position of the child node is wrong and the actual size is also too large.
Sample SCChart
Result in Kieler
Result in the VSCode Extension
Exporting the diagram as a kgx from Kieler and viewing in VSCode