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

Diagram Editor: Positioning of editors inside boxes doesn't work

Open RobertWalterU3d opened this issue 4 years ago • 4 comments

When my diagram boxes contain slightly less trivial editors, the positioning is all messed up: image

The little blue box next to the vertical list of resources indicates the property cell that should be positioned in the selected diagram box, but it does not seem to consider the relative position of the diagram itself. For comparison, the second green box containing "Something" is of the same concept type, at it's property cell is positioned correctly, since the collection below is empty and only shows the empty cell. this is the editor in question: image

I also add boxes for each element of the "effects" collection to the diagram, and its content is a smart reference, which unfortunately also positions the Cell incorrectly (blue box with red text). Also, my editor does not have any styling, I don't know why the text is red.

The corresponding editor for the blue boxes ("effects") is just this: image

RobertWalterU3d avatar May 07 '20 07:05 RobertWalterU3d

I guess the problems I observe are due to the erroneous state in the model. What I actually would like to do is to include some sort of interaction to the diagram that allows the user to add children to the green nodes by a simple interaction, like a button press. But adding swing components to the editor results in the same problem: DiagramLayoutIssue

The buttons seem not to consider the relative position of the diagram, nor does the box width consider the button's width resize.

RobertWalterU3d avatar May 07 '20 08:05 RobertWalterU3d

I have a similar issue. It is not visible in the editor, but when I create a screenshot (using the mbeddr api) I see a similar issue

bkolb avatar May 26 '20 15:05 bkolb

Please try now. These issues are hard to reproduce so I had to guess and don't know if I fixed it.

slisson avatar Jun 04 '20 07:06 slisson

Hi, I tried today and I still see the issue when I take a screenshot of my diagram

bkolb avatar Jun 09 '20 19:06 bkolb

I'll close the issue as it is not reproducible anymore. It seems to be fixed. Please reopen if the issue persists.

alexanderpann avatar Jun 18 '24 20:06 alexanderpann