MPS-extensions icon indicating copy to clipboard operation
MPS-extensions copied to clipboard

Diagram: Bounding box too small if optional name is involved

Open kbirken opened this issue 2 years ago • 1 comments

In a customer project, we are using an optional name scheme based on grammarcells with an editor component like this:

image

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:

image

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.

kbirken avatar Oct 19 '22 15:10 kbirken

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.

alexanderpann avatar Jun 30 '24 20:06 alexanderpann