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

Problem with setting offsetY attribute for the mtr control #7978

Closed
Devika-Keni opened this issue May 30, 2022 · 1 comment
Closed

Problem with setting offsetY attribute for the mtr control #7978

Devika-Keni opened this issue May 30, 2022 · 1 comment

Comments

@Devika-Keni
Copy link

There seems to be an issue with setting the offsetY attribute for the mtr control of an object. Although the offsetY gets set correctly for the object in question, it also seems to override the offsetY property of all other object 'mtr' controls.

Issue observed in version : "fabric@5.2.1",
Code used 👎
As per the latest guidelines for usage (for fabric version 4 and above) I am following the above link
http://fabricjs.com/controls-customization.
In the code on that page ,pls refer to the line 👎 canvas.item(0).controls.mtr.offsetY = -parseFloat(this.value);
In the above demo, since there is only one rectangle the problem is not identifiable. Pls add another element to the canvas, and try execute the line above.. You will fin that it changes the offset for all the objects, rather than only the one

@ShaMan123
Copy link
Contributor

@asturur
#7914

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

2 participants