|
@@ -214,7 +214,7 @@ class PagerTabStripViewController: UIViewController, UIScrollViewDelegate {
|
|
|
|
|
|
for (index, childController) in pagerViewControllers.enumerated() {
|
|
|
let pageOffsetForChild = self.pageOffsetForChild(at: index)
|
|
|
- if fabs(containerView.contentOffset.x - pageOffsetForChild) < containerView.bounds.width {
|
|
|
+ if abs(containerView.contentOffset.x - pageOffsetForChild) < containerView.bounds.width {
|
|
|
if childController.parent != nil {
|
|
|
childController.view.frame = CGRect(x: offsetForChild(at: index), y: 0, width: view.bounds.width, height: containerView.bounds.height)
|
|
|
childController.view.autoresizingMask = [.flexibleHeight, .flexibleWidth]
|