kieler / klighd-vscode

Eclipse Public License 2.0
8 stars 6 forks source link

Incorrect handling of padding in rendering #68

Closed Eddykasp closed 1 year ago

Eddykasp commented 2 years ago

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

padding_kieler

Result in the VSCode Extension

padding_vscode

Exporting the diagram as a kgx from Kieler and viewing in VSCode

issue68