-
-
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
Padding of objects in group is reset #6989
Comments
Hi @dellvolk there are 2 issues here:
Try to add the padding value on the prototype if you want it everywhere. Object.prototype.padding = -10. |
Hi @asturur I don't need to set a padding for the group. Only for elements in this group. That the stroke of the group remained as it is, and the black stroke of the elements of the group was like the padding of the elements themselves |
There is no padding for elements in the group. |
How can this be solved? |
It can't. You have to modify the internal functions to handle the objects control boxes. You can try of course but i can't support you. |
Solution found: The method that handles the border size calculation for objects in a group is The following should work as a drop-in replacement for this method in order to factor padding into the size calculation: https://jsfiddle.net/melchiar/bw384o2n/
|
how does it compare to the actual function. can you higlight the diff? |
Any. But without explicitly prescribing this prototype, it does not work |
Version
4.2.0
Test Case
https://jsfiddle.net/dellvolk/c8zas7th/12/
Expected Behavior
I need that when objects form group padding remained
Actual Behavior
Padding in objects is -10, but when they form group, the padding changes to 0
The text was updated successfully, but these errors were encountered: