You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
depending on what are you doing with the toDataUrl, take care there is a toCanvasElement also now! maybe is usefull if you are redisplaying that dataUrl sonewhere else
Version
2.4.6
Test Case
http://jsfiddle.net/rg9mhvuj/
Information about environment
Browser: Chrome
Steps to reproduce
Set zoom input to 2 and click "rectangle.toDataURL" button
Expected Behavior
On mouse over rectangle and clicking in it should set rectangle as active object
Actual Behavior
The controls of the rectangle are located as the canvas wasn't zoomed.
Comments
This situation can be solved by calling "object.setCoords()" after "object.toDataURL()".
However i leave to you the decision if it is a bug or if it should be used .setCoords() (maybe add this example to https://github.com/fabricjs/fabric.js/wiki/When-to-call-setCoords)
The text was updated successfully, but these errors were encountered: