We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a634cb7 + 484f39e commit d84ce2eCopy full SHA for d84ce2e
1 file changed
Objective-C/TOCropViewController/Views/TOCropToolbar.m
@@ -294,7 +294,7 @@ - (void)layoutToolbarButtons:(NSArray *)buttons withSameButtonSize:(CGSize)size
294
295
for (NSInteger i = 0; i < count; i++) {
296
UIButton *button = buttons[i];
297
- CGFloat sameOffset = horizontally ? fabs(CGRectGetHeight(containerRect)-CGRectGetHeight(button.bounds)) : fabs(CGRectGetWidth(containerRect)-CGRectGetWidth(button.bounds));
+ CGFloat sameOffset = horizontally ? fabs(CGRectGetHeight(containerRect)-44.0f) : fabs(CGRectGetWidth(containerRect)-CGRectGetWidth(button.bounds));
298
CGFloat diffOffset = padding + i * (fixedSize + padding);
299
CGPoint origin = horizontally ? CGPointMake(diffOffset, sameOffset) : CGPointMake(sameOffset, diffOffset);
300
if (horizontally) {
0 commit comments