mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-25 13:43:44 +00:00
save new state anyway (#3595)
This commit is contained in:
parent
e72881bb6d
commit
9bb820ed75
2 changed files with 3 additions and 7 deletions
|
|
@ -616,6 +616,7 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|||
this._removeCharsFromTo(this.selectionStart, this.selectionEnd);
|
||||
}
|
||||
|
||||
this.set('dirty', true);
|
||||
this.setSelectionEnd(this.selectionStart);
|
||||
|
||||
this._removeExtraneousStyles();
|
||||
|
|
|
|||
|
|
@ -713,13 +713,8 @@
|
|||
* @private
|
||||
*/
|
||||
_shouldClearDimensionCache: function() {
|
||||
var shouldClear = false;
|
||||
if (this._forceClearCache) {
|
||||
this._forceClearCache = false;
|
||||
this.dirty = true;
|
||||
return true;
|
||||
}
|
||||
shouldClear = this.hasStateChanged('_dimensionAffectingProps');
|
||||
var shouldClear = this._forceClearCache;
|
||||
shouldClear || (shouldClear = this.hasStateChanged('_dimensionAffectingProps'));
|
||||
if (shouldClear) {
|
||||
this.saveState({ propertySet: '_dimensionAffectingProps' });
|
||||
this.dirty = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue