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

Add a bool to force cache clear on next render #2204

Merged
merged 1 commit into from
May 18, 2015
Merged

Add a bool to force cache clear on next render #2204

merged 1 commit into from
May 18, 2015

Conversation

asturur
Copy link
Member

@asturur asturur commented May 18, 2015

Issue #2201 made me found out the bug i was searching for.
Clearing cache is not enough, because dimension of text where not recalculated if cache clearing was not detected by _shouldClearCache() method.

Adding a boolean that force cache clearing solves this problems, also avoids to clear cache too many time for one rendering

closes #2201

@@ -579,7 +579,6 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot

this._removeExtraneousStyles();

this._clearCache();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gets removed.
Removing char is changing text property so no need to enforce cache clearing.

kangax added a commit that referenced this pull request May 18, 2015
Add a bool to force cache clear on next render
@kangax kangax merged commit 37720ea into fabricjs:master May 18, 2015
@asturur asturur deleted the fixtextstylec branch May 18, 2015 20:55
@sarath-prohaktiv
Copy link

Thanks asturur
It is working now

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

Successfully merging this pull request may close these issues.

i-text border selection when font weight changed for selected styles
3 participants