jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Apache License 2.0
39.92k stars 7.46k forks source link

Grouping objects bugs #137

Open Pointy-hair opened 6 years ago

Pointy-hair commented 6 years ago

Incorrect behaviour in shape grouping

To reproduce

1) Add 3 rectangles. 2) Select these and group. either (--------incorrect behaviour) 3) Rotate with group handle. 4) Resize objects in group. --------Selection rectangle does not bound shapes --------Strange resize, breaks alignment and preview changes position once mouse up. or 3) Click on the Rotate 90 or change angle in arrange. 4) Resize group. --------Each item rotates, not group of shape --------Selection rectangle does not bound shapes --------Shapes do resize but group already broken or 3) Resize with Arrange Toolbar Size options width/height --------Shapes don't change just selection rectangle or 3) Select single object in group 4) Move it --------Group bounds don't change or 3) Flip Horz or Vert of group ---------Does nothing 4) Drag select --------- Each shape is selected not group

Expected a) Selection box should always bound grouped shapes. b) Rotate operation should rotate group of shapes as a group and not individually. c) Rotated shapes grouped should resize with the selection bounds. d) Resize/Rotate should operate the same both on Arrange toolbar and shape selection box handles.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

janfrederik commented 4 years ago

These issues are still very much present in the draw.io plugin of Confluence Cloud

mcouper commented 4 years ago

Bump...ran into similar issues with the downloaded app (Mac version). Created 3 circles, grouped them, then tried to move them. Each is selectable individually, but not as a group. In fact, highlighting all three shows three individual objects; rather than a single grouped object.

It appears that this could be tied to the size of the objects, and the fact that the selection area for the group is too small to be accessible.

onavsaber commented 3 years ago

Any update on this issue?

davidjgraph commented 3 years ago

If you're a paying draw.io user, better to complain via support@draw.io. Otherwise, it's vote for original comment or submit a pull request.

m-radzikowski commented 3 years ago

Just to add, the group bounds do not appear to change at all in most cases when the inner elements are resized. It's not only a matter of rotating etc. Simple scenario:

  1. Create 2 rectangles
  2. Group them
  3. Make one bigger
  4. Make other smaller

Here I resized rect A to the left and shrunk rect B. You can see that the group is still of it's original size.

The workaround is to ungroup and group objects again, but that's not what I want to do every time I modify the group.

image

luciandf commented 8 months ago

what's the word on groups? i am using this in browser and try to group some shapes so I can copy and paste them easily. I group them, they appear to be grouped but when I copy and paste them, they somehow are ungroupped because when I try to drag the pasted group, then objects are not kept together.

iggysniggy commented 3 weeks ago

Just chiming in that I also have this issue. I use grouping a lot whilst changing the objects in the group and I am regrouping a lot. Would be awesome if there was automatic regrouping. (I'm studying CS, so I might be able to have a look at a pull request, but no promises.)