Skip to content

Commit 09360ff

Browse files
committed
2 parents 2371983 + f8a4c44 commit 09360ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Objective-C/TOCropViewController/TOCropViewController.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,11 @@ - (void)adjustCropViewInsets
423423
if (!self.verticalLayout) {
424424
insets.left = CGRectGetMaxX(self.toolbar.frame);
425425
} else {
426-
insets.bottom = CGRectGetHeight(self.view.frame) - CGRectGetMinY(self.toolbar.frame);
426+
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+
}
427431
}
428432
}
429433

0 commit comments

Comments
 (0)