Skip to content

Commit d84ce2e

Browse files
authored
Merge pull request #612 from TimOliver/ios26-fix
Fixed toolbar icon layout issue in iOS 26
2 parents a634cb7 + 484f39e commit d84ce2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objective-C/TOCropViewController/Views/TOCropToolbar.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ - (void)layoutToolbarButtons:(NSArray *)buttons withSameButtonSize:(CGSize)size
294294

295295
for (NSInteger i = 0; i < count; i++) {
296296
UIButton *button = buttons[i];
297-
CGFloat sameOffset = horizontally ? fabs(CGRectGetHeight(containerRect)-CGRectGetHeight(button.bounds)) : fabs(CGRectGetWidth(containerRect)-CGRectGetWidth(button.bounds));
297+
CGFloat sameOffset = horizontally ? fabs(CGRectGetHeight(containerRect)-44.0f) : fabs(CGRectGetWidth(containerRect)-CGRectGetWidth(button.bounds));
298298
CGFloat diffOffset = padding + i * (fixedSize + padding);
299299
CGPoint origin = horizontally ? CGPointMake(diffOffset, sameOffset) : CGPointMake(sameOffset, diffOffset);
300300
if (horizontally) {

0 commit comments

Comments
 (0)