Skip to content

Commit

Permalink
Merge pull request #4 from rive-app/content_fit
Browse files Browse the repository at this point in the history
Amended content AABB
  • Loading branch information
mjohnsullivan authored Oct 15, 2020
2 parents 803b218 + 230b6db commit ae0db2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Rive.mm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ -(void) alignWithRect:(CGRect)rect withContentRect:(CGRect)contentRect withAlign

// Calculate the AABBs
rive::AABB frame = rive::AABB(rect.origin.x, rect.origin.y, rect.size.width + rect.origin.x, rect.size.height + rect.origin.y);
rive::AABB content = rive::AABB(contentRect.origin.x, contentRect.origin.y, contentRect.size.width + contentRect.origin.x, rect.size.height + rect.origin.y);
rive::AABB content = rive::AABB(contentRect.origin.x, contentRect.origin.y, contentRect.size.width + contentRect.origin.x, contentRect.size.height + contentRect.origin.y);

// Work out the fit
rive::Fit riveFit;
Expand Down

0 comments on commit ae0db2a

Please sign in to comment.