Skip to content

Commit

Permalink
Merge pull request facebookarchive#355 from facebook/text-placeholders
Browse files Browse the repository at this point in the history
Text placeholders snap to pixels
  • Loading branch information
secretiverhyme committed Mar 11, 2015
2 parents c7e04c8 + b6dea69 commit 862c8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AsyncDisplayKit/ASTextNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ - (UIImage *)placeholderImage
// 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);
Expand Down

0 comments on commit 862c8f2

Please sign in to comment.