fixed: sizing cache was not set up correctly

This commit is contained in:
daboe01
2016-09-09 20:31:53 +02:00
parent 3a948406d5
commit 8cfd3aeda9
+1 -1
View File
@@ -89,7 +89,7 @@ CPStringSizeCachingEnabled = YES;
var sizeCacheForFont = CPStringSizeWithFontInWidthCache[self];
if (sizeCacheForFont === undefined)
sizeCacheForFont = [];
sizeCacheForFont = CPStringSizeWithFontInWidthCache[self] = [];
var cssString = [aFont cssString],
cacheKey = cssString + '_' + aWidth;