MPS-extensions
MPS-extensions copied to clipboard
Diagram: Bounding box too small if optional name is involved
In a customer project, we are using an optional name scheme based on grammarcells with an editor component like this:
When using this in the diagram editor, the bounding box width is too small, if the optional cell is being used. If it is not visible, the bounding box width is okay. Example:
Expected: The space to the right-hand side of any
in the second box should have the same width as the space on the rhs of something
in the first box.
The issue is that the gap between "something" and "as any" is considered by the layouter but not by the size calculation of the box.