From 6d23186523e99b980fb42bdead7b44649b6ce865 Mon Sep 17 00:00:00 2001 From: Denis Koltovich Date: Tue, 28 Apr 2026 18:21:32 +0300 Subject: [PATCH] fix: iOS 26 --- Objective-C/TOCropViewController/Views/TOCropToolbar.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-C/TOCropViewController/Views/TOCropToolbar.m b/Objective-C/TOCropViewController/Views/TOCropToolbar.m index cc5023d7..09c350e4 100644 --- a/Objective-C/TOCropViewController/Views/TOCropToolbar.m +++ b/Objective-C/TOCropViewController/Views/TOCropToolbar.m @@ -294,7 +294,7 @@ - (void)layoutToolbarButtons:(NSArray *)buttons withSameButtonSize:(CGSize)size for (NSInteger i = 0; i < count; i++) { UIButton *button = buttons[i]; - CGFloat sameOffset = horizontally ? fabs(CGRectGetHeight(containerRect)-CGRectGetHeight(button.bounds)) : fabs(CGRectGetWidth(containerRect)-CGRectGetWidth(button.bounds)); + CGFloat sameOffset = horizontally ? 0 : fabs(CGRectGetWidth(containerRect)-CGRectGetWidth(button.bounds)); CGFloat diffOffset = padding + i * (fixedSize + padding); CGPoint origin = horizontally ? CGPointMake(diffOffset, sameOffset) : CGPointMake(sameOffset, diffOffset); if (horizontally) {