mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-11 22:35:18 +08:00
Merge pull request #355 from facebook/text-placeholders
Text placeholders snap to pixels
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user