-
-
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
controlsAboveOverlay: true
not respected when using canvas.loadFromJSON
#1012
Comments
For me it works. Can you create small jsfiddle test case. |
Been bug testing furiously for our project's delivery and have come back to this issue. It looks like the same thing is happening to My coworker is taking over this one so I will try to report back or get him in here. A test fiddle would be a 2 fabric canvases, a top one with the settings |
@jaydenseric Sorry for my late response - now I can reproduce the error, too. |
Great, I have forgotten all the details and our workaround, but best of luck on a fix :) |
The point is that in loadFrom json we do not restore anything but objects, overlay and background. There is nothing restoring "propertiesToInclude" to fix: We clone the json object, we delete objects and the overlays/background, and the we setOptions(clonedJson); it should works |
controlsAboveOverlay: true
canvas option is not respected when usingcanvas.loadFromJSON
. Usingconsole.log
on the JSON I can see that the option has been correctly preserved, it is just not being used when being loaded for some reason.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: