mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 04:11:52 +00:00
Merge pull request #2050 from asturur/iText-clearing-cache-on-style-change
Clear cache on setStyle on itext
This commit is contained in:
commit
de85900c8f
1 changed files with 2 additions and 1 deletions
|
|
@ -284,6 +284,8 @@
|
|||
this._extendStyles(i, styles);
|
||||
}
|
||||
}
|
||||
/* not included in _extendStyles to avoid clearing cache more than once */
|
||||
this._clearCache();
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
@ -299,7 +301,6 @@
|
|||
if (!this.styles[loc.lineIndex][loc.charIndex]) {
|
||||
this.styles[loc.lineIndex][loc.charIndex] = { };
|
||||
}
|
||||
|
||||
fabric.util.object.extend(this.styles[loc.lineIndex][loc.charIndex], styles);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue