-
-
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
No background colour after loadFromJSON when image present. #3028
Comments
if you switch the property from background to backgroundColor it goes. Guess what happened... i'm gonna look at it. |
Yes, I see. Also I am using setBackgroundColor method to set background colour. |
Actually the problem is even more acute in 1.6.3 (did not test on 1.6.2) as if you set a background image it is not enlivened if images are present in the JSON. |
Ok found out where the issue comes form: in loadFromJSON |
I believe data is being deleted before this._enlivenObjects() has finished it's job. Better to call the deletes in _this._setBgOverlay's callback i believe. |
it is a recent regression and butch2k is right. i have to delete data in the callback and restore properties. |
Version
1.6.2
Test Case
https://jsfiddle.net/oxz3r51u/6/
Steps to reproduce
Expected Behavior
Background colour should be restored from JSON.
Actual Behavior
No background colour set.
Note
The text was updated successfully, but these errors were encountered: