borkdominik / bigUML

A UML web modeling tool based on GLSP, distributed via a VS Code extension.
MIT License
30 stars 5 forks source link

Compartments should also respect notation sizes #72

Open haydar-metin opened 1 year ago

haydar-metin commented 1 year ago

Follow up to #54

If a container has a size and a header, then the compartment will be smaller than the size defined in the notation, because the header also takes some height / size. In other words, the size defined in the notation is the size of the whole element.

However, this causes the container to shrink if a element is moved from the bottom edge to the center/top.

haydar-metin commented 1 year ago

The size should be dynamic, i.e., if the name is changed then they should also get smaller (Long name -> short name)

haydar-metin commented 1 year ago

Also adding child nodes to compartments does not add the child to the location of the mouse

Resizing does not respect child elements