-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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]: Adding objects to group works differently (incorrectly?), when added initially or after the group is created. #8944
Comments
No it should not. Lines 279 to 283 in 1c65ae8
|
|
Parcel is so bad! It doesn't let me run this code snippet |
Thank you very much for your reply. After looking into the code and your comments, I got a feeling that I started to understand the logic behind this behaviour...
What is the difference between fit-content and fit-content-lazy and clip-path?
If I understood you correctly you failed to run your code due to the wrong target in the default tsconfig.json. I created another sample with this calss |
Soon when the website is up I will write an extensive guide about group and group layout
The layout mechanism is built for fine grained control. It isn't good enough yet though. But has no prominent bugs. |
Thank you again. I think I understand now (more or less) how grouping works. |
Looked at the code and found out 'objectsRelativeToGroup' option... |
@ShaMan123 I've got more questions...
|
You should call renderAll, requestRenderAll better in most cases.
Please take take time to read discussions labelled with |
Thanks. As far as I understand requestRenderAll() should help to avoid unnecessary renders and we should use it instaed of renderAll in the most cases? |
Correct |
CheckList
Version
6.0.0-beta6
In What environments are you experiencing the problem?
No response
Node Version (if applicable)
None
Link To Reproduction
https://codesandbox.io/s/fabric-group-zij6s0?file=/src/index.ts
Steps To Reproduce
Expected Behavior
The group should keep the initial coordinates.
The behaviour of adding objects before creating group or after should be the same.
The 2 groups in example should have the same coordinates.
Actual Behavior
The coordinates of groups are different.
Error Message & Stack Trace
No response
The text was updated successfully, but these errors were encountered: