Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 44aae77

Browse files
committed
Merge pull request #1079 from aaronschubert0/ASTextNode-Fix-for-layout-bug
[ASTextKitRenderer] Potential fix headIndent attribute not being accounted for by the shadower.
2 parents 5be14e4 + 10a2984 commit 44aae77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AsyncDisplayKit/TextKit/ASTextKitRenderer.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ - (void)_calculateSize
111111
// to make sure our width calculations aren't being offset by glyphs going beyond the constrained rect.
112112
boundingRect = CGRectIntersection(boundingRect, {.size = constrainedRect.size});
113113

114-
_calculatedSize = [_shadower outsetSizeWithInsetSize:boundingRect.size];
114+
_calculatedSize = [_shadower outsetSizeWithInsetSize:CGSizeMake(boundingRect.size.width + boundingRect.origin.x, boundingRect.size.height + boundingRect.origin.y)];
115115
}
116116

117117
- (CGSize)size

0 commit comments

Comments
 (0)