mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
fixed: text sizing did not work for javascript function names
This commit is contained in:
@@ -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