Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objects have no controls and disappear after "ungrouping" #4290

Closed
WillemStaels opened this issue Sep 6, 2017 · 6 comments
Closed

Objects have no controls and disappear after "ungrouping" #4290

WillemStaels opened this issue Sep 6, 2017 · 6 comments

Comments

@WillemStaels
Copy link

WillemStaels commented Sep 6, 2017

Version

1.7.7

Test Case

https://jsfiddle.net/WillemStaels/w9j3qwg0/3/

Steps to reproduce

  • Create group with objects
  • "Ungroup" and add objects back to canvas

Expected Behavior

  • Ungrouped objects should act like normally added objects
  • Objects should not disappear

Actual Behavior

  • When trying to select one of the objects, the controls are not showing
  • When trying to make a selection (drag a square around the circles), the selection box + controls show again
  • When deselecting (clicking on the canvas), all the objects become invisible, however the are still there (try to make the same selection again while dragging)
  • After rotating, scaling or any transformation it looks like "Expected behavior" is back for the single object.
@asturur
Copy link
Member

asturur commented Sep 6, 2017

The problem lies in how you are ungrouping.
Please since here we support latest 1.7.17 or version 2 beta, could you move this question on stackoverflow?

@WillemStaels
Copy link
Author

Ok no problem, just posted it on SO. Is there any tutorial or guide that I've missed? I already read all of the docs multiple times....

@ncou
Copy link
Collaborator

ncou commented Sep 6, 2017

Here you have an example about grouping/ungrouping made by sandor.

https://jsfiddle.net/wta4pdpz/14/

@asturur
Copy link
Member

asturur commented Sep 6, 2017 via email

@WillemStaels
Copy link
Author

https://stackoverflow.com/questions/46076682/unable-to-ungroup-with-fabric-js

@ncou with the "master" version I can get it working like the example, but not on 1.7...

@asturur
Copy link
Member

asturur commented Sep 6, 2017

https://stackoverflow.com/questions/46076682/unable-to-ungroup-with-fabric-js/46077425#46077425

I answered.
Thanks for the clean question with the snippet. Makes things faster.

This issue highlighted a small bug i think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants