mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 10:20:59 +00:00
fixed: sizing cache was not set up correctly
This commit is contained in:
1 parent
3a948406d5
commit
8cfd3aeda9
1 file changed
+1
-1
@@ -89,7 +89,7 @@ CPStringSizeCachingEnabled = YES;
|
||||
var sizeCacheForFont = CPStringSizeWithFontInWidthCache[self];
|
||||
|
||||
if (sizeCacheForFont === undefined)
|
||||
sizeCacheForFont = [];
|
||||
sizeCacheForFont = CPStringSizeWithFontInWidthCache[self] = [];
|
||||
|
||||
var cssString = [aFont cssString],
|
||||
cacheKey = cssString + '_' + aWidth;
|
||||
|
||||
Reference in new issue
Block a user