-
-
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
Group Transform Bug #2964
Comments
They way you override the padding is ok. |
I found it. |
@asturur Great! I posted a horrible GIF showing at least what is happening (edited) |
Also, I would like to note on my project, the bug is worse. All i have to do is attempt to flip anywhere and it occurs. I am not sure why the JSFIDDLE take a few tries to get it to bug out. |
Something hard to find out. I was about to release 1.6.2 but i have to fix this first. |
For some reason it goes away "I think" when you set the padding to 0. Also, I'm not sure if this is related, but now my backgroundImage for my canvas doesn't scale anymore with my canvas. |
No ok, bug is generic. Remove padding, group object, do not transform, scale to flip, go slow, when you cross the border of 0 it happens. :( This evening Cinema, tomorrow morning i'll look at it. |
@asturur did you find what was causing this issue? |
no movie finished to late to wake up early before work and do it. i hope this weekend i can clear out and release. |
That is fine, I also think I found a bug regarding cloning groups, however I posted a question on StackOverflow regarding it if you would like to glance at it. |
i saw the question, i tried to understand what is going on. I put it in the list of things to verify. |
I attached a jsfiddle to show what is going on. I also did not mean to close the issue :) |
This is a very strange bug and i do not understand why it did not came out before. The fact is that we have a parameter that saves us and this is minScaleLimit. Now for objects bigger than 250 pixels ( very common ) this parameter is rounded to 0. |
Awesome! When should we expect this (with the next update) to come out? |
Version
1.6.1
Test Case
https://jsfiddle.net/6269qpdu/
Steps to reproduce
Select (group) the two rectangle and randomly transform them (i.e. squashing the entire object as small as possible). Note: I had to do the process multiple times, sometimes fast for the bug to occur. When this happens i get something that looks like this:
I think this has something to do with me changing the padding here:
fabric.Object.prototype.padding = 5;
. When I remove this, everything seems to work fine. This bring me to a better point. Is there a decent way other than this to override these values?Expected Behavior
The group should normally transform.
Actual Behavior
When grabbing the top/left/right controls and squashing the group, the entire group disappears and jumps to the top left of the canvas.
The text was updated successfully, but these errors were encountered: