Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckDeck committed Jan 5, 2017
1 parent 0c99add commit a1bfa62
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 1 addition & 2 deletions GrandMenu/GrandMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ open class GrandMenu: UIView,GraneMenuItemDelegate {
open func adjustScrollOffset(){
let x = selectedItem!.frame.origin.x
let right = x + selectedItem!.frame.size.width
print("x:\(x)")
if right < 0.5 * scrollView!.frame.width {
if right <= 0.5 * scrollView!.frame.width {
scrollView?.setContentOffset(CGPoint(x: 0, y: 0), animated: true)
}
else if right > scrollView!.contentSize.width - 0.5 * scrollView!.frame.width{
Expand Down
Binary file modified GrandMenuDemo/.DS_Store
Binary file not shown.

0 comments on commit a1bfa62

Please sign in to comment.