mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 08:32:58 +00:00
fixed: text sizing did not work for javascript function names
This commit is contained in:
1 parent
7acb30b981
commit
59de0e7a4a
1 file changed
+1
-1
@@ -94,7 +94,7 @@ CPStringSizeCachingEnabled = YES;
|
||||
|
||||
size = CPStringSizeWithFontInWidthCache[self][cacheKey];
|
||||
|
||||
if (size !== undefined)
|
||||
if (CPStringSizeWithFontInWidthCache[self].hasOwnProperty(cacheKey) && size !== undefined)
|
||||
return CGSizeMakeCopy(size);
|
||||
|
||||
if (!CPStringSizeDidTestCanvasSizingValid)
|
||||
|
||||
Reference in new issue
Block a user