diff --git a/Source/Rive.mm b/Source/Rive.mm index 437f9279..3471b3dc 100644 --- a/Source/Rive.mm +++ b/Source/Rive.mm @@ -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;