From b6dea690704e2ba3fb50e68525f40ad37e612836 Mon Sep 17 00:00:00 2001 From: Ryan Nystrom Date: Thu, 5 Mar 2015 14:39:00 -0800 Subject: [PATCH] Text placeholders snap to pixels --- AsyncDisplayKit/ASTextNode.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncDisplayKit/ASTextNode.mm b/AsyncDisplayKit/ASTextNode.mm index 80201548..5a61451f 100644 --- a/AsyncDisplayKit/ASTextNode.mm +++ b/AsyncDisplayKit/ASTextNode.mm @@ -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);