mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 22:11:18 +00:00
Fixed with the new string size optimisation: the cache value was returned by reference and something in the CPButton path for image and text buttons changed it causing text to become misaligned. A defensive copy avoids this problem.
This commit is contained in:
1 parent
afcce49455
commit
367efe590e
1 file changed
+1
-1
@@ -60,7 +60,7 @@ var CPStringSizeWithFontInWidthCache = {};
|
||||
CPStringSizeWithFontInWidthCache[cacheKey] = size;
|
||||
}
|
||||
|
||||
return size;
|
||||
return CGSizeMakeCopy(size);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user