Skip to content

Commit

Permalink
Merge pull request #28 from finn-no/fix_restore-collectionViewBottomM…
Browse files Browse the repository at this point in the history
…argin

Fix iPad bottom margin
  • Loading branch information
3lvis authored Nov 8, 2017
2 parents 610d839 + 497dbd2 commit a950b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Finjinon/PhotoCaptureViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ open class PhotoCaptureViewController: UIViewController, PhotoCollectionViewLayo
previewView.addGestureRecognizer(tapper)

var collectionViewHeight: CGFloat = min(viewFrame.size.height / 6, 120)
let collectionViewBottomMargin: CGFloat = 0 //70
let collectionViewBottomMargin: CGFloat = 70
let cameraButtonHeight: CGFloat = 66

var containerFrame = CGRect(x: viewFrame.origin.x, y: viewFrame.origin.y + viewBounds.height - collectionViewBottomMargin - collectionViewHeight, width: viewBounds.width, height: collectionViewBottomMargin + collectionViewHeight)
Expand Down

0 comments on commit a950b2d

Please sign in to comment.