ls1intum / Apollon

UML Modeling Editor written in React
https://apollon-library.readthedocs.io
MIT License
68 stars 22 forks source link

No straight lines on certain component sizes #104

Closed julian-christl closed 4 years ago

julian-christl commented 4 years ago

Describe the bug

Not able to create a straight line with certain component sizes.

To Reproduce

  1. Create a component
  2. Resize this component to match a hight of 5 small grid boxes and therefore one big box
  3. Add a interface an connect it with the component
  4. Try to drag it to a straight line

Expected behavior

Straight line.

Screenshots

Screenshot from Gyazo Screenshot from Gyazo

Additional context

This might actually be the issue of #100 (see second screenshot). This always happens when a resizable UML element has an odd hight and the other one an even height. (Same v.v. and regarding the width).

julian-christl commented 4 years ago

However this might be an interesting issue since there is a grid for a reason.

TobiasPr commented 4 years ago

It always happens with uneven sizes in case of component diagrams (and others) and I also guess with use cases, because use cases can only moved 2 units at a time (might apply to other components as well)

TobiasPr commented 4 years ago

will be included in next Apollon release