mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-01 22:56:17 +00:00
fixed: the canvas sizing and DOM sizing differed by 1px
This commit is contained in:
@@ -101,7 +101,7 @@ CPStringSizeCachingEnabled = YES;
|
||||
if (fontHeight === undefined)
|
||||
fontHeight = CPStringSizeWithFontHeightCache[cssString] = [aFont defaultLineHeightForFont];
|
||||
|
||||
size = CGSizeMake(CPStringSizeMeasuringContext.measureText(self).width, fontHeight);
|
||||
size = CGSizeMake(CPStringSizeMeasuringContext.measureText(self).width + 1, fontHeight);
|
||||
}
|
||||
|
||||
sizeCacheForFont[cacheKey] = size;
|
||||
|
||||
Reference in New Issue
Block a user