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 2371983 + f8a4c44 commit 09360ffCopy full SHA for 09360ff
Objective-C/TOCropViewController/TOCropViewController.m
@@ -423,7 +423,11 @@ - (void)adjustCropViewInsets
423
if (!self.verticalLayout) {
424
insets.left = CGRectGetMaxX(self.toolbar.frame);
425
} else {
426
- insets.bottom = CGRectGetHeight(self.view.frame) - CGRectGetMinY(self.toolbar.frame);
+ if (self.toolbarPosition == TOCropViewControllerToolbarPositionTop) {
427
+ insets.top = CGRectGetMinY(self.toolbar.frame);
428
+ } else {
429
+ insets.bottom = CGRectGetHeight(self.view.frame) - CGRectGetMinY(self.toolbar.frame);
430
+ }
431
}
432
433
0 commit comments