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

controlsAboveOverlay: true not respected when using canvas.loadFromJSON #1012

Closed
jaydenseric opened this issue Nov 25, 2013 · 5 comments · Fixed by #2921
Closed

controlsAboveOverlay: true not respected when using canvas.loadFromJSON #1012

jaydenseric opened this issue Nov 25, 2013 · 5 comments · Fixed by #2921
Assignees
Labels

Comments

@jaydenseric
Copy link

controlsAboveOverlay: true canvas option is not respected when using canvas.loadFromJSON. Using console.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.

@Kienz
Copy link
Collaborator

Kienz commented Nov 25, 2013

For me it works. Can you create small jsfiddle test case.
Thanks!

@jaydenseric
Copy link
Author

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 selection: false. We updated Fabric to the latest build from one a week or so ago and the issue persists.

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 controlsAboveOverlay: true and selection: false applied, and a bottom one loading the JSON dump of the top.

@Kienz
Copy link
Collaborator

Kienz commented May 13, 2014

@jaydenseric Sorry for my late response - now I can reproduce the error, too.
I've created small jsfiddle testcase: http://jsfiddle.net/Kienz/EGYFX/

@Kienz Kienz self-assigned this May 13, 2014
@jaydenseric
Copy link
Author

Great, I have forgotten all the details and our workaround, but best of luck on a fix :)

@asturur
Copy link
Member

asturur commented Apr 30, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants