Skip to content

Commit

Permalink
Fix for layout problems created by changing the panelInsetTop to a no…
Browse files Browse the repository at this point in the history
…n-default value. #165
  • Loading branch information
amyleecodes committed Feb 9, 2018
1 parent 0e00bd4 commit 953cb3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Pulley.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Pulley'
s.version = '2.2.6'
s.version = '2.2.7'
s.summary = 'A library to imitate the iOS 10 Maps UI.'

# This description is used to generate tags and improve search results.
Expand Down
4 changes: 2 additions & 2 deletions PulleyLib/PulleyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ open class PulleyViewController: UIViewController, PulleyDrawerViewControllerDel
}

/// When in 'leftSide' displayMode, this is used to calculate the top inset from the edge of the screen.
@IBInspectable public var panelInsetTop: CGFloat = 10.0 {
@IBInspectable public var panelInsetTop: CGFloat = 30.0 {
didSet {
if self.isViewLoaded
{
Expand Down Expand Up @@ -935,7 +935,7 @@ open class PulleyViewController: UIViewController, PulleyDrawerViewControllerDel

let lowestStop = [(self.view.bounds.size.height - topInset - safeAreaTopInset), collapsedHeight, partialRevealHeight].min() ?? 0

drawerContentContainer.frame = CGRect(x: 0.0, y: drawerScrollView.bounds.height - lowestStop - panelInsetTop, width: drawerScrollView.bounds.width, height: drawerScrollView.contentOffset.y + lowestStop + bounceOverflowMargin - panelInsetTop)
drawerContentContainer.frame = CGRect(x: 0.0, y: drawerScrollView.bounds.height - lowestStop , width: drawerScrollView.bounds.width, height: drawerScrollView.contentOffset.y + lowestStop + bounceOverflowMargin)
drawerBackgroundVisualEffectView?.frame = drawerContentContainer.frame
drawerShadowView.frame = drawerContentContainer.frame

Expand Down

0 comments on commit 953cb3f

Please sign in to comment.