Merge pull request #355 from facebook/text-placeholders

Text placeholders snap to pixels
This commit is contained in:
Nadine Salter
2015-03-11 14:15:20 -07:00

View File

@@ -711,7 +711,7 @@ ASDISPLAYNODE_INLINE CGFloat ceilPixelValue(CGFloat f)
// fill each line with the placeholder color
for (NSValue *rectValue in lineRects) {
CGRect lineRect = [rectValue CGRectValue];
CGRect fillBounds = UIEdgeInsetsInsetRect(lineRect, self.placeholderInsets);
CGRect fillBounds = CGRectIntegral(UIEdgeInsetsInsetRect(lineRect, self.placeholderInsets));
if (fillBounds.size.width > 0.0 && fillBounds.size.height > 0.0) {
UIRectFill(fillBounds);