Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion AsyncDisplayKit/ASTextNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,12 @@ - (CGSize)calculateSizeThatFits:(CGSize)constrainedSize
ASDisplayNodeRespectThreadAffinityOfNode(self, ^{
[self setNeedsDisplay];
});
return [[self _renderer] size];

// Ceil the size to the pixel grid so it renders cleanly.
CGSize result = [[self _renderer] size];
result.width = ASCeilPixelValue(result.width);
result.height = ASCeilPixelValue(result.height);
return result;
}

- (void)displayDidFinish
Expand Down