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

[Bug]: Controls and enclosing box calculation exception when element is in group #10381

Open
7 tasks done
overdev-l opened this issue Jan 2, 2025 · 6 comments
Open
7 tasks done

Comments

@overdev-l
Copy link

CheckList

  • I agree to follow this project's Code of Conduct
  • I have read and followed the Contributing Guide
  • I have read and followed the Issue Tracker Guide
  • I have searched and referenced existing issues and discussions
  • I am filing a BUG report.
  • I have managed to reproduce the bug after upgrading to the latest version
  • I have created an accurate and minimal reproduction

Version

6.0.2

In What environments are you experiencing the problem?

Chrome

Node Version (if applicable)

None

Link To Reproduction

https://codesandbox.io/p/github/overdev-l/canvas/master?import=true

Steps To Reproduce

  1. Create group
  2. Create Image
  3. Move Image to Group

Expected Behavior

I have set up a LayoutManager for a Group, using FixedLayout, which adds elements to the Group when the user drags an element outside the Group to the Group and lifts the mouse. according to the performance, it seems to be due to a problem with the calculation of the bounding box of the elements inside the Group, which is caused by the LayoutManger. Is this caused by LayoutManger?

redpandacompress_.2025-01-02.165701.mp4

Actual Behavior

redpandacompress_.2025-01-02.165701.mp4

Error Message & Stack Trace

No response

@overdev-l
Copy link
Author

I found the reason here: #10214 but I can't get activeSelection

@asturur
Copy link
Member

asturur commented Jan 5, 2025

Not sure the codepen you linked is the good one, i can't see any fabricjs code

@overdev-l
Copy link
Author

Not sure the codepen you linked is the good one, i can't see any fabricjs code不确定您链接的 codepen 是否正确,我看不到任何 Fabricjs 代码

https://codesandbox.io/p/github/overdev-l/demo/master Can you open this address?

@overdev-l
Copy link
Author

Is there any way to change the parent element of an element while dragging it without interrupting the selection and dragging?

@asturur
Copy link
Member

asturur commented Jan 6, 2025

Not sure the codepen you linked is the good one, i can't see any fabricjs code不确定您链接的 codepen 是否正确,我看不到任何 Fabricjs 代码

https://codesandbox.io/p/github/overdev-l/demo/master Can you open this address?

Yes but there is no fabric code inside. Just a lot of code

@overdev-l
Copy link
Author

Not sure the codepen you linked is the good one, i can't see any fabricjs code不确定您链接的 codepen 是否正确,我看不到任何 Fabricjs 代码

https://codesandbox.io/p/github/overdev-l/demo/master Can you open this address?

Yes but there is no fabric code inside. Just a lot of code

image The fabric-related code is here

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

No branches or pull requests

2 participants