Skip to content

Commit

Permalink
[FIX] content frame crop calculation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
c-nguyen committed Apr 10, 2018
1 parent d785a4e commit e6e5a22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,9 @@ public class FMImageEditorViewController: UIViewController {
// MARK: - Logics
private func contentFrameCrop() -> CGRect {
return CGRect(x: kContentFrameSpacing,
y: kContentFrameSpacing + topMenuContainter.frame.height,
y: kContentFrameSpacing + transparentViewHeightConstraint.constant,
width: view.bounds.width - 2 * kContentFrameSpacing,
height: view.bounds.height - topMenuContainter.frame.height - bottomMenuContainer.frame.height - subMenuContainer.frame.height - 2 * kContentFrameSpacing)
height: view.bounds.height - transparentViewHeightConstraint.constant - bottomMenuContainer.frame.height - subMenuContainer.frame.height - unsafeAreaBottomViewHeightConstraint.constant - 2 * kContentFrameSpacing)
}

private func contentFrameFilter() -> CGRect {
Expand Down

0 comments on commit e6e5a22

Please sign in to comment.