Skip to content

Commit

Permalink
change tiling area
Browse files Browse the repository at this point in the history
  • Loading branch information
kahayash authored and kahayash committed Jul 18, 2017
1 parent 47eef65 commit 3fbaafd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PagingKit/MenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public class PagingMenuView: UIScrollView {

if numberOfItem != 0 {
let visibleBounds = convert(bounds, to: containerView)
tileCell(from: max(0, visibleBounds.minX * 0.75), to: min(contentSize.width, visibleBounds.maxX * 1.5))
tileCell(
from: max(0, visibleBounds.minX),
to: min(contentSize.width, visibleBounds.maxX)
)
}
}

Expand Down

0 comments on commit 3fbaafd

Please sign in to comment.